1// SPDX-License-Identifier: MIT
2
3// Code generated by protoc-gen-go. DO NOT EDIT.
4// versions:
5// protoc-gen-go v1.36.12
6// protoc (unknown)
7// source: ermite/server.proto
8
9package ermite
10
11import (
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
15 reflect "reflect"
16 sync "sync"
17 unsafe "unsafe"
18)
19
20const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25)
26
27// GetVersionRequest is empty.
28type GetVersionRequest struct {
29 state protoimpl.MessageState `protogen:"open.v1"`
30 unknownFields protoimpl.UnknownFields
31 sizeCache protoimpl.SizeCache
32}
33
34func (x *GetVersionRequest) Reset() {
35 *x = GetVersionRequest{}
36 mi := &file_ermite_server_proto_msgTypes[0]
37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38 ms.StoreMessageInfo(mi)
39}
40
41func (x *GetVersionRequest) String() string {
42 return protoimpl.X.MessageStringOf(x)
43}
44
45func (*GetVersionRequest) ProtoMessage() {}
46
47func (x *GetVersionRequest) ProtoReflect() protoreflect.Message {
48 mi := &file_ermite_server_proto_msgTypes[0]
49 if x != nil {
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 if ms.LoadMessageInfo() == nil {
52 ms.StoreMessageInfo(mi)
53 }
54 return ms
55 }
56 return mi.MessageOf(x)
57}
58
59// Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.
60func (*GetVersionRequest) Descriptor() ([]byte, []int) {
61 return file_ermite_server_proto_rawDescGZIP(), []int{0}
62}
63
64// GetVersionResponse describes the running server.
65type GetVersionResponse struct {
66 state protoimpl.MessageState `protogen:"open.v1"`
67 // Version is the server release, for example "v0.4.0", or "devel" for an
68 // untagged build. Informational: clients must not compare it to decide what
69 // is supported, they use features instead.
70 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
71 // Features lists identifiers of the optional capabilities of the contract
72 // that this server implements, for example "repo.update" or
73 // "events.resume". A client that needs a capability missing from this list
74 // should warn instead of failing on an unimplemented RPC or ignored field.
75 // Identifiers are lowercase, dot-separated and never reused. The CI
76 // identifiers are "ci.runs" (RunService runs, jobs, logs, checks, and the
77 // run_updated and job_updated events), "ci.runs.filters" (ListRuns honours
78 // its filters) and "ci.runners" (RunnerService, and RunService.ListRunners
79 // and RemoveRunner). The CI execution identifiers are "ci.actions"
80 // (RunnerService.ResolveActions and Job.github_token), "ci.annotations"
81 // (annotations in UpdateJob and CompleteJob, and RunService.ListAnnotations)
82 // and "ci.summaries" (RunnerService.UploadSummary and
83 // RunService.GetStepSummaries). The CI platform identifiers are "ci.secrets"
84 // (SecretService, VariableService and EnvironmentService, and in Job the
85 // secrets, vars, environment, permissions and trusted fields and Run.trusted),
86 // "ci.dispatch" (RunService.DispatchWorkflow), "ci.concurrency"
87 // (CI_STATUS_PENDING and RunJob.concurrency_group), "ci.cache" (Job.cache)
88 // and "ci.artifacts" (JobArtifactService and ArtifactService). The merge
89 // request identifier "merge_requests.mergeability" covers
90 // MergeRequest.mergeability, the MergeRequestMergeability event and
91 // MERGE_MODE_MERGE_COMMIT. "merge_requests.auto_merge" covers
92 // RepoSettings.allow_auto_merge, MergeRequest.auto_merge and auto_merged,
93 // the EnableAutoMerge and CancelAutoMerge RPCs, the
94 // MergeRequestAutoMergeEnabled and MergeRequestAutoMergeCancelled events
95 // and MergeRequestMerged.auto. "releases" covers ReleaseService and the
96 // release_published, release_updated, release_deleted and release_unpublished events.
97 Features []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
98 unknownFields protoimpl.UnknownFields
99 sizeCache protoimpl.SizeCache
100}
101
102func (x *GetVersionResponse) Reset() {
103 *x = GetVersionResponse{}
104 mi := &file_ermite_server_proto_msgTypes[1]
105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
106 ms.StoreMessageInfo(mi)
107}
108
109func (x *GetVersionResponse) String() string {
110 return protoimpl.X.MessageStringOf(x)
111}
112
113func (*GetVersionResponse) ProtoMessage() {}
114
115func (x *GetVersionResponse) ProtoReflect() protoreflect.Message {
116 mi := &file_ermite_server_proto_msgTypes[1]
117 if x != nil {
118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119 if ms.LoadMessageInfo() == nil {
120 ms.StoreMessageInfo(mi)
121 }
122 return ms
123 }
124 return mi.MessageOf(x)
125}
126
127// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
128func (*GetVersionResponse) Descriptor() ([]byte, []int) {
129 return file_ermite_server_proto_rawDescGZIP(), []int{1}
130}
131
132func (x *GetVersionResponse) GetVersion() string {
133 if x != nil {
134 return x.Version
135 }
136 return ""
137}
138
139func (x *GetVersionResponse) GetFeatures() []string {
140 if x != nil {
141 return x.Features
142 }
143 return nil
144}
145
146// GetSigningKeyRequest is empty.
147type GetSigningKeyRequest struct {
148 state protoimpl.MessageState `protogen:"open.v1"`
149 unknownFields protoimpl.UnknownFields
150 sizeCache protoimpl.SizeCache
151}
152
153func (x *GetSigningKeyRequest) Reset() {
154 *x = GetSigningKeyRequest{}
155 mi := &file_ermite_server_proto_msgTypes[2]
156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
157 ms.StoreMessageInfo(mi)
158}
159
160func (x *GetSigningKeyRequest) String() string {
161 return protoimpl.X.MessageStringOf(x)
162}
163
164func (*GetSigningKeyRequest) ProtoMessage() {}
165
166func (x *GetSigningKeyRequest) ProtoReflect() protoreflect.Message {
167 mi := &file_ermite_server_proto_msgTypes[2]
168 if x != nil {
169 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
170 if ms.LoadMessageInfo() == nil {
171 ms.StoreMessageInfo(mi)
172 }
173 return ms
174 }
175 return mi.MessageOf(x)
176}
177
178// Deprecated: Use GetSigningKeyRequest.ProtoReflect.Descriptor instead.
179func (*GetSigningKeyRequest) Descriptor() ([]byte, []int) {
180 return file_ermite_server_proto_rawDescGZIP(), []int{2}
181}
182
183// GetSigningKeyResponse describes the commit signing key of the server.
184type GetSigningKeyResponse struct {
185 state protoimpl.MessageState `protogen:"open.v1"`
186 // PublicKey is the public key as one OpenSSH authorized_keys line, for
187 // example "ssh-ed25519 AAAA...". Commits are signed in the SSH signature
188 // format (SSHSIG).
189 PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
190 // Fingerprint is the SHA-256 fingerprint of the key, in the form
191 // "SHA256:<base64>" that ssh-keygen prints.
192 Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
193 // CommitterName is the name the server records as the committer of the
194 // commits it creates.
195 CommitterName string `protobuf:"bytes,3,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"`
196 // CommitterEmail is the email address the server records as the committer of
197 // the commits it creates. It is the principal of allowed_signers.
198 CommitterEmail string `protobuf:"bytes,4,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
199 // AllowedSigners is a ready-to-use line for an allowed signers file
200 // ("<committer_email> <public_key>"), to verify these commits with
201 // "git config gpg.ssh.allowedSignersFile".
202 AllowedSigners string `protobuf:"bytes,5,opt,name=allowed_signers,json=allowedSigners,proto3" json:"allowed_signers,omitempty"`
203 unknownFields protoimpl.UnknownFields
204 sizeCache protoimpl.SizeCache
205}
206
207func (x *GetSigningKeyResponse) Reset() {
208 *x = GetSigningKeyResponse{}
209 mi := &file_ermite_server_proto_msgTypes[3]
210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
211 ms.StoreMessageInfo(mi)
212}
213
214func (x *GetSigningKeyResponse) String() string {
215 return protoimpl.X.MessageStringOf(x)
216}
217
218func (*GetSigningKeyResponse) ProtoMessage() {}
219
220func (x *GetSigningKeyResponse) ProtoReflect() protoreflect.Message {
221 mi := &file_ermite_server_proto_msgTypes[3]
222 if x != nil {
223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
224 if ms.LoadMessageInfo() == nil {
225 ms.StoreMessageInfo(mi)
226 }
227 return ms
228 }
229 return mi.MessageOf(x)
230}
231
232// Deprecated: Use GetSigningKeyResponse.ProtoReflect.Descriptor instead.
233func (*GetSigningKeyResponse) Descriptor() ([]byte, []int) {
234 return file_ermite_server_proto_rawDescGZIP(), []int{3}
235}
236
237func (x *GetSigningKeyResponse) GetPublicKey() string {
238 if x != nil {
239 return x.PublicKey
240 }
241 return ""
242}
243
244func (x *GetSigningKeyResponse) GetFingerprint() string {
245 if x != nil {
246 return x.Fingerprint
247 }
248 return ""
249}
250
251func (x *GetSigningKeyResponse) GetCommitterName() string {
252 if x != nil {
253 return x.CommitterName
254 }
255 return ""
256}
257
258func (x *GetSigningKeyResponse) GetCommitterEmail() string {
259 if x != nil {
260 return x.CommitterEmail
261 }
262 return ""
263}
264
265func (x *GetSigningKeyResponse) GetAllowedSigners() string {
266 if x != nil {
267 return x.AllowedSigners
268 }
269 return ""
270}
271
272// RotateOIDCKeyRequest is empty.
273type RotateOIDCKeyRequest struct {
274 state protoimpl.MessageState `protogen:"open.v1"`
275 unknownFields protoimpl.UnknownFields
276 sizeCache protoimpl.SizeCache
277}
278
279func (x *RotateOIDCKeyRequest) Reset() {
280 *x = RotateOIDCKeyRequest{}
281 mi := &file_ermite_server_proto_msgTypes[4]
282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283 ms.StoreMessageInfo(mi)
284}
285
286func (x *RotateOIDCKeyRequest) String() string {
287 return protoimpl.X.MessageStringOf(x)
288}
289
290func (*RotateOIDCKeyRequest) ProtoMessage() {}
291
292func (x *RotateOIDCKeyRequest) ProtoReflect() protoreflect.Message {
293 mi := &file_ermite_server_proto_msgTypes[4]
294 if x != nil {
295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
296 if ms.LoadMessageInfo() == nil {
297 ms.StoreMessageInfo(mi)
298 }
299 return ms
300 }
301 return mi.MessageOf(x)
302}
303
304// Deprecated: Use RotateOIDCKeyRequest.ProtoReflect.Descriptor instead.
305func (*RotateOIDCKeyRequest) Descriptor() ([]byte, []int) {
306 return file_ermite_server_proto_rawDescGZIP(), []int{4}
307}
308
309// RotateOIDCKeyResponse describes the new signing key of the ID tokens.
310type RotateOIDCKeyResponse struct {
311 state protoimpl.MessageState `protogen:"open.v1"`
312 // Issuer is the "iss" of the ID tokens, for example
313 // "https://git.example.com/-/oidc". Its discovery document is at
314 // "<issuer>/.well-known/openid-configuration".
315 Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
316 // Kid is the key id of the new key, the "kid" of the tokens it signs: the
317 // RFC 7638 thumbprint of its public key, base64url without padding.
318 Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"`
319 // RetiredKid is the key id of the key it replaces; empty when there was
320 // none.
321 RetiredKid string `protobuf:"bytes,3,opt,name=retired_kid,json=retiredKid,proto3" json:"retired_kid,omitempty"`
322 // RetiredUntil is when the replaced key leaves the JWKS. Unset when there
323 // was none.
324 RetiredUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=retired_until,json=retiredUntil,proto3" json:"retired_until,omitempty"`
325 unknownFields protoimpl.UnknownFields
326 sizeCache protoimpl.SizeCache
327}
328
329func (x *RotateOIDCKeyResponse) Reset() {
330 *x = RotateOIDCKeyResponse{}
331 mi := &file_ermite_server_proto_msgTypes[5]
332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
333 ms.StoreMessageInfo(mi)
334}
335
336func (x *RotateOIDCKeyResponse) String() string {
337 return protoimpl.X.MessageStringOf(x)
338}
339
340func (*RotateOIDCKeyResponse) ProtoMessage() {}
341
342func (x *RotateOIDCKeyResponse) ProtoReflect() protoreflect.Message {
343 mi := &file_ermite_server_proto_msgTypes[5]
344 if x != nil {
345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
346 if ms.LoadMessageInfo() == nil {
347 ms.StoreMessageInfo(mi)
348 }
349 return ms
350 }
351 return mi.MessageOf(x)
352}
353
354// Deprecated: Use RotateOIDCKeyResponse.ProtoReflect.Descriptor instead.
355func (*RotateOIDCKeyResponse) Descriptor() ([]byte, []int) {
356 return file_ermite_server_proto_rawDescGZIP(), []int{5}
357}
358
359func (x *RotateOIDCKeyResponse) GetIssuer() string {
360 if x != nil {
361 return x.Issuer
362 }
363 return ""
364}
365
366func (x *RotateOIDCKeyResponse) GetKid() string {
367 if x != nil {
368 return x.Kid
369 }
370 return ""
371}
372
373func (x *RotateOIDCKeyResponse) GetRetiredKid() string {
374 if x != nil {
375 return x.RetiredKid
376 }
377 return ""
378}
379
380func (x *RotateOIDCKeyResponse) GetRetiredUntil() *timestamppb.Timestamp {
381 if x != nil {
382 return x.RetiredUntil
383 }
384 return nil
385}
386
387var File_ermite_server_proto protoreflect.FileDescriptor
388
389const file_ermite_server_proto_rawDesc = "" +
390 "\n" +
391 "\x13ermite/server.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"\x13\n" +
392 "\x11GetVersionRequest\"J\n" +
393 "\x12GetVersionResponse\x12\x18\n" +
394 "\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" +
395 "\bfeatures\x18\x02 \x03(\tR\bfeatures\"\x16\n" +
396 "\x14GetSigningKeyRequest\"\xd1\x01\n" +
397 "\x15GetSigningKeyResponse\x12\x1d\n" +
398 "\n" +
399 "public_key\x18\x01 \x01(\tR\tpublicKey\x12 \n" +
400 "\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x12%\n" +
401 "\x0ecommitter_name\x18\x03 \x01(\tR\rcommitterName\x12'\n" +
402 "\x0fcommitter_email\x18\x04 \x01(\tR\x0ecommitterEmail\x12'\n" +
403 "\x0fallowed_signers\x18\x05 \x01(\tR\x0eallowedSigners\"\x16\n" +
404 "\x14RotateOIDCKeyRequest\"\xa3\x01\n" +
405 "\x15RotateOIDCKeyResponse\x12\x16\n" +
406 "\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x10\n" +
407 "\x03kid\x18\x02 \x01(\tR\x03kid\x12\x1f\n" +
408 "\vretired_kid\x18\x03 \x01(\tR\n" +
409 "retiredKid\x12?\n" +
410 "\rretired_until\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\fretiredUntil2\xf0\x01\n" +
411 "\rServerService\x12C\n" +
412 "\n" +
413 "GetVersion\x12\x19.ermite.GetVersionRequest\x1a\x1a.ermite.GetVersionResponse\x12L\n" +
414 "\rGetSigningKey\x12\x1c.ermite.GetSigningKeyRequest\x1a\x1d.ermite.GetSigningKeyResponse\x12L\n" +
415 "\rRotateOIDCKey\x12\x1c.ermite.RotateOIDCKeyRequest\x1a\x1d.ermite.RotateOIDCKeyResponseBr\n" +
416 "\n" +
417 "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"
418
419var (
420 file_ermite_server_proto_rawDescOnce sync.Once
421 file_ermite_server_proto_rawDescData []byte
422)
423
424func file_ermite_server_proto_rawDescGZIP() []byte {
425 file_ermite_server_proto_rawDescOnce.Do(func() {
426 file_ermite_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)))
427 })
428 return file_ermite_server_proto_rawDescData
429}
430
431var file_ermite_server_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
432var file_ermite_server_proto_goTypes = []any{
433 (*GetVersionRequest)(nil), // 0: ermite.GetVersionRequest
434 (*GetVersionResponse)(nil), // 1: ermite.GetVersionResponse
435 (*GetSigningKeyRequest)(nil), // 2: ermite.GetSigningKeyRequest
436 (*GetSigningKeyResponse)(nil), // 3: ermite.GetSigningKeyResponse
437 (*RotateOIDCKeyRequest)(nil), // 4: ermite.RotateOIDCKeyRequest
438 (*RotateOIDCKeyResponse)(nil), // 5: ermite.RotateOIDCKeyResponse
439 (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
440}
441var file_ermite_server_proto_depIdxs = []int32{
442 6, // 0: ermite.RotateOIDCKeyResponse.retired_until:type_name -> google.protobuf.Timestamp
443 0, // 1: ermite.ServerService.GetVersion:input_type -> ermite.GetVersionRequest
444 2, // 2: ermite.ServerService.GetSigningKey:input_type -> ermite.GetSigningKeyRequest
445 4, // 3: ermite.ServerService.RotateOIDCKey:input_type -> ermite.RotateOIDCKeyRequest
446 1, // 4: ermite.ServerService.GetVersion:output_type -> ermite.GetVersionResponse
447 3, // 5: ermite.ServerService.GetSigningKey:output_type -> ermite.GetSigningKeyResponse
448 5, // 6: ermite.ServerService.RotateOIDCKey:output_type -> ermite.RotateOIDCKeyResponse
449 4, // [4:7] is the sub-list for method output_type
450 1, // [1:4] is the sub-list for method input_type
451 1, // [1:1] is the sub-list for extension type_name
452 1, // [1:1] is the sub-list for extension extendee
453 0, // [0:1] is the sub-list for field type_name
454}
455
456func init() { file_ermite_server_proto_init() }
457func file_ermite_server_proto_init() {
458 if File_ermite_server_proto != nil {
459 return
460 }
461 type x struct{}
462 out := protoimpl.TypeBuilder{
463 File: protoimpl.DescBuilder{
464 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
465 RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)),
466 NumEnums: 0,
467 NumMessages: 6,
468 NumExtensions: 0,
469 NumServices: 1,
470 },
471 GoTypes: file_ermite_server_proto_goTypes,
472 DependencyIndexes: file_ermite_server_proto_depIdxs,
473 MessageInfos: file_ermite_server_proto_msgTypes,
474 }.Build()
475 File_ermite_server_proto = out.File
476 file_ermite_server_proto_goTypes = nil
477 file_ermite_server_proto_depIdxs = nil
478}