// SPDX-License-Identifier: MIT // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: ermite/server.proto package ermite import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // GetVersionRequest is empty. type GetVersionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetVersionRequest) Reset() { *x = GetVersionRequest{} mi := &file_ermite_server_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetVersionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetVersionRequest) ProtoMessage() {} func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead. func (*GetVersionRequest) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{0} } // GetVersionResponse describes the running server. type GetVersionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Version is the server release, for example "v0.4.0", or "devel" for an // untagged build. Informational: clients must not compare it to decide what // is supported, they use features instead. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Features lists identifiers of the optional capabilities of the contract // that this server implements, for example "repo.update" or // "events.resume". A client that needs a capability missing from this list // should warn instead of failing on an unimplemented RPC or ignored field. // Identifiers are lowercase, dot-separated and never reused. The CI // identifiers are "ci.runs" (RunService runs, jobs, logs, checks, and the // run_updated and job_updated events), "ci.runs.filters" (ListRuns honours // its filters) and "ci.runners" (RunnerService, and RunService.ListRunners // and RemoveRunner). The CI execution identifiers are "ci.actions" // (RunnerService.ResolveActions and Job.github_token), "ci.annotations" // (annotations in UpdateJob and CompleteJob, and RunService.ListAnnotations) // and "ci.summaries" (RunnerService.UploadSummary and // RunService.GetStepSummaries). The CI platform identifiers are "ci.secrets" // (SecretService, VariableService and EnvironmentService, and in Job the // secrets, vars, environment, permissions and trusted fields and Run.trusted), // "ci.dispatch" (RunService.DispatchWorkflow), "ci.concurrency" // (CI_STATUS_PENDING and RunJob.concurrency_group), "ci.cache" (Job.cache) // and "ci.artifacts" (JobArtifactService and ArtifactService). Features []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetVersionResponse) Reset() { *x = GetVersionResponse{} mi := &file_ermite_server_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetVersionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetVersionResponse) ProtoMessage() {} func (x *GetVersionResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead. func (*GetVersionResponse) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{1} } func (x *GetVersionResponse) GetVersion() string { if x != nil { return x.Version } return "" } func (x *GetVersionResponse) GetFeatures() []string { if x != nil { return x.Features } return nil } // GetSigningKeyRequest is empty. type GetSigningKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetSigningKeyRequest) Reset() { *x = GetSigningKeyRequest{} mi := &file_ermite_server_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetSigningKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSigningKeyRequest) ProtoMessage() {} func (x *GetSigningKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetSigningKeyRequest.ProtoReflect.Descriptor instead. func (*GetSigningKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{2} } // GetSigningKeyResponse describes the commit signing key of the server. type GetSigningKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // PublicKey is the public key as one OpenSSH authorized_keys line, for // example "ssh-ed25519 AAAA...". Commits are signed in the SSH signature // format (SSHSIG). PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Fingerprint is the SHA-256 fingerprint of the key, in the form // "SHA256:" that ssh-keygen prints. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // CommitterName is the name the server records as the committer of the // commits it creates. CommitterName string `protobuf:"bytes,3,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"` // CommitterEmail is the email address the server records as the committer of // the commits it creates. It is the principal of allowed_signers. CommitterEmail string `protobuf:"bytes,4,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"` // AllowedSigners is a ready-to-use line for an allowed signers file // (" "), to verify these commits with // "git config gpg.ssh.allowedSignersFile". AllowedSigners string `protobuf:"bytes,5,opt,name=allowed_signers,json=allowedSigners,proto3" json:"allowed_signers,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetSigningKeyResponse) Reset() { *x = GetSigningKeyResponse{} mi := &file_ermite_server_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetSigningKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSigningKeyResponse) ProtoMessage() {} func (x *GetSigningKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetSigningKeyResponse.ProtoReflect.Descriptor instead. func (*GetSigningKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{3} } func (x *GetSigningKeyResponse) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } func (x *GetSigningKeyResponse) GetFingerprint() string { if x != nil { return x.Fingerprint } return "" } func (x *GetSigningKeyResponse) GetCommitterName() string { if x != nil { return x.CommitterName } return "" } func (x *GetSigningKeyResponse) GetCommitterEmail() string { if x != nil { return x.CommitterEmail } return "" } func (x *GetSigningKeyResponse) GetAllowedSigners() string { if x != nil { return x.AllowedSigners } return "" } // RotateOIDCKeyRequest is empty. type RotateOIDCKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RotateOIDCKeyRequest) Reset() { *x = RotateOIDCKeyRequest{} mi := &file_ermite_server_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RotateOIDCKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RotateOIDCKeyRequest) ProtoMessage() {} func (x *RotateOIDCKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RotateOIDCKeyRequest.ProtoReflect.Descriptor instead. func (*RotateOIDCKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{4} } // RotateOIDCKeyResponse describes the new signing key of the ID tokens. type RotateOIDCKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Issuer is the "iss" of the ID tokens, for example // "https://git.example.com/-/oidc". Its discovery document is at // "/.well-known/openid-configuration". Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // Kid is the key id of the new key, the "kid" of the tokens it signs: the // RFC 7638 thumbprint of its public key, base64url without padding. Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"` // RetiredKid is the key id of the key it replaces; empty when there was // none. RetiredKid string `protobuf:"bytes,3,opt,name=retired_kid,json=retiredKid,proto3" json:"retired_kid,omitempty"` // RetiredUntil is when the replaced key leaves the JWKS. Unset when there // was none. RetiredUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=retired_until,json=retiredUntil,proto3" json:"retired_until,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RotateOIDCKeyResponse) Reset() { *x = RotateOIDCKeyResponse{} mi := &file_ermite_server_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RotateOIDCKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RotateOIDCKeyResponse) ProtoMessage() {} func (x *RotateOIDCKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_server_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RotateOIDCKeyResponse.ProtoReflect.Descriptor instead. func (*RotateOIDCKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_server_proto_rawDescGZIP(), []int{5} } func (x *RotateOIDCKeyResponse) GetIssuer() string { if x != nil { return x.Issuer } return "" } func (x *RotateOIDCKeyResponse) GetKid() string { if x != nil { return x.Kid } return "" } func (x *RotateOIDCKeyResponse) GetRetiredKid() string { if x != nil { return x.RetiredKid } return "" } func (x *RotateOIDCKeyResponse) GetRetiredUntil() *timestamppb.Timestamp { if x != nil { return x.RetiredUntil } return nil } var File_ermite_server_proto protoreflect.FileDescriptor const file_ermite_server_proto_rawDesc = "" + "\n" + "\x13ermite/server.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"\x13\n" + "\x11GetVersionRequest\"J\n" + "\x12GetVersionResponse\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" + "\bfeatures\x18\x02 \x03(\tR\bfeatures\"\x16\n" + "\x14GetSigningKeyRequest\"\xd1\x01\n" + "\x15GetSigningKeyResponse\x12\x1d\n" + "\n" + "public_key\x18\x01 \x01(\tR\tpublicKey\x12 \n" + "\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x12%\n" + "\x0ecommitter_name\x18\x03 \x01(\tR\rcommitterName\x12'\n" + "\x0fcommitter_email\x18\x04 \x01(\tR\x0ecommitterEmail\x12'\n" + "\x0fallowed_signers\x18\x05 \x01(\tR\x0eallowedSigners\"\x16\n" + "\x14RotateOIDCKeyRequest\"\xa3\x01\n" + "\x15RotateOIDCKeyResponse\x12\x16\n" + "\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x10\n" + "\x03kid\x18\x02 \x01(\tR\x03kid\x12\x1f\n" + "\vretired_kid\x18\x03 \x01(\tR\n" + "retiredKid\x12?\n" + "\rretired_until\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\fretiredUntil2\xf0\x01\n" + "\rServerService\x12C\n" + "\n" + "GetVersion\x12\x19.ermite.GetVersionRequest\x1a\x1a.ermite.GetVersionResponse\x12L\n" + "\rGetSigningKey\x12\x1c.ermite.GetSigningKeyRequest\x1a\x1d.ermite.GetSigningKeyResponse\x12L\n" + "\rRotateOIDCKey\x12\x1c.ermite.RotateOIDCKeyRequest\x1a\x1d.ermite.RotateOIDCKeyResponseBr\n" + "\n" + "com.ermiteB\vServerProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3" var ( file_ermite_server_proto_rawDescOnce sync.Once file_ermite_server_proto_rawDescData []byte ) func file_ermite_server_proto_rawDescGZIP() []byte { file_ermite_server_proto_rawDescOnce.Do(func() { file_ermite_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc))) }) return file_ermite_server_proto_rawDescData } var file_ermite_server_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_ermite_server_proto_goTypes = []any{ (*GetVersionRequest)(nil), // 0: ermite.GetVersionRequest (*GetVersionResponse)(nil), // 1: ermite.GetVersionResponse (*GetSigningKeyRequest)(nil), // 2: ermite.GetSigningKeyRequest (*GetSigningKeyResponse)(nil), // 3: ermite.GetSigningKeyResponse (*RotateOIDCKeyRequest)(nil), // 4: ermite.RotateOIDCKeyRequest (*RotateOIDCKeyResponse)(nil), // 5: ermite.RotateOIDCKeyResponse (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_ermite_server_proto_depIdxs = []int32{ 6, // 0: ermite.RotateOIDCKeyResponse.retired_until:type_name -> google.protobuf.Timestamp 0, // 1: ermite.ServerService.GetVersion:input_type -> ermite.GetVersionRequest 2, // 2: ermite.ServerService.GetSigningKey:input_type -> ermite.GetSigningKeyRequest 4, // 3: ermite.ServerService.RotateOIDCKey:input_type -> ermite.RotateOIDCKeyRequest 1, // 4: ermite.ServerService.GetVersion:output_type -> ermite.GetVersionResponse 3, // 5: ermite.ServerService.GetSigningKey:output_type -> ermite.GetSigningKeyResponse 5, // 6: ermite.ServerService.RotateOIDCKey:output_type -> ermite.RotateOIDCKeyResponse 4, // [4:7] is the sub-list for method output_type 1, // [1:4] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_ermite_server_proto_init() } func file_ermite_server_proto_init() { if File_ermite_server_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ermite_server_proto_goTypes, DependencyIndexes: file_ermite_server_proto_depIdxs, MessageInfos: file_ermite_server_proto_msgTypes, }.Build() File_ermite_server_proto = out.File file_ermite_server_proto_goTypes = nil file_ermite_server_proto_depIdxs = nil }