v0.14.0 f9976e7

server.pb.go RawHistoryFolder

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.
96	Features      []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
97	unknownFields protoimpl.UnknownFields
98	sizeCache     protoimpl.SizeCache
99}
100
101func (x *GetVersionResponse) Reset() {
102	*x = GetVersionResponse{}
103	mi := &file_ermite_server_proto_msgTypes[1]
104	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105	ms.StoreMessageInfo(mi)
106}
107
108func (x *GetVersionResponse) String() string {
109	return protoimpl.X.MessageStringOf(x)
110}
111
112func (*GetVersionResponse) ProtoMessage() {}
113
114func (x *GetVersionResponse) ProtoReflect() protoreflect.Message {
115	mi := &file_ermite_server_proto_msgTypes[1]
116	if x != nil {
117		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118		if ms.LoadMessageInfo() == nil {
119			ms.StoreMessageInfo(mi)
120		}
121		return ms
122	}
123	return mi.MessageOf(x)
124}
125
126// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
127func (*GetVersionResponse) Descriptor() ([]byte, []int) {
128	return file_ermite_server_proto_rawDescGZIP(), []int{1}
129}
130
131func (x *GetVersionResponse) GetVersion() string {
132	if x != nil {
133		return x.Version
134	}
135	return ""
136}
137
138func (x *GetVersionResponse) GetFeatures() []string {
139	if x != nil {
140		return x.Features
141	}
142	return nil
143}
144
145// GetSigningKeyRequest is empty.
146type GetSigningKeyRequest struct {
147	state         protoimpl.MessageState `protogen:"open.v1"`
148	unknownFields protoimpl.UnknownFields
149	sizeCache     protoimpl.SizeCache
150}
151
152func (x *GetSigningKeyRequest) Reset() {
153	*x = GetSigningKeyRequest{}
154	mi := &file_ermite_server_proto_msgTypes[2]
155	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156	ms.StoreMessageInfo(mi)
157}
158
159func (x *GetSigningKeyRequest) String() string {
160	return protoimpl.X.MessageStringOf(x)
161}
162
163func (*GetSigningKeyRequest) ProtoMessage() {}
164
165func (x *GetSigningKeyRequest) ProtoReflect() protoreflect.Message {
166	mi := &file_ermite_server_proto_msgTypes[2]
167	if x != nil {
168		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169		if ms.LoadMessageInfo() == nil {
170			ms.StoreMessageInfo(mi)
171		}
172		return ms
173	}
174	return mi.MessageOf(x)
175}
176
177// Deprecated: Use GetSigningKeyRequest.ProtoReflect.Descriptor instead.
178func (*GetSigningKeyRequest) Descriptor() ([]byte, []int) {
179	return file_ermite_server_proto_rawDescGZIP(), []int{2}
180}
181
182// GetSigningKeyResponse describes the commit signing key of the server.
183type GetSigningKeyResponse struct {
184	state protoimpl.MessageState `protogen:"open.v1"`
185	// PublicKey is the public key as one OpenSSH authorized_keys line, for
186	// example "ssh-ed25519 AAAA...". Commits are signed in the SSH signature
187	// format (SSHSIG).
188	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
189	// Fingerprint is the SHA-256 fingerprint of the key, in the form
190	// "SHA256:<base64>" that ssh-keygen prints.
191	Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
192	// CommitterName is the name the server records as the committer of the
193	// commits it creates.
194	CommitterName string `protobuf:"bytes,3,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"`
195	// CommitterEmail is the email address the server records as the committer of
196	// the commits it creates. It is the principal of allowed_signers.
197	CommitterEmail string `protobuf:"bytes,4,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
198	// AllowedSigners is a ready-to-use line for an allowed signers file
199	// ("<committer_email> <public_key>"), to verify these commits with
200	// "git config gpg.ssh.allowedSignersFile".
201	AllowedSigners string `protobuf:"bytes,5,opt,name=allowed_signers,json=allowedSigners,proto3" json:"allowed_signers,omitempty"`
202	unknownFields  protoimpl.UnknownFields
203	sizeCache      protoimpl.SizeCache
204}
205
206func (x *GetSigningKeyResponse) Reset() {
207	*x = GetSigningKeyResponse{}
208	mi := &file_ermite_server_proto_msgTypes[3]
209	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
210	ms.StoreMessageInfo(mi)
211}
212
213func (x *GetSigningKeyResponse) String() string {
214	return protoimpl.X.MessageStringOf(x)
215}
216
217func (*GetSigningKeyResponse) ProtoMessage() {}
218
219func (x *GetSigningKeyResponse) ProtoReflect() protoreflect.Message {
220	mi := &file_ermite_server_proto_msgTypes[3]
221	if x != nil {
222		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
223		if ms.LoadMessageInfo() == nil {
224			ms.StoreMessageInfo(mi)
225		}
226		return ms
227	}
228	return mi.MessageOf(x)
229}
230
231// Deprecated: Use GetSigningKeyResponse.ProtoReflect.Descriptor instead.
232func (*GetSigningKeyResponse) Descriptor() ([]byte, []int) {
233	return file_ermite_server_proto_rawDescGZIP(), []int{3}
234}
235
236func (x *GetSigningKeyResponse) GetPublicKey() string {
237	if x != nil {
238		return x.PublicKey
239	}
240	return ""
241}
242
243func (x *GetSigningKeyResponse) GetFingerprint() string {
244	if x != nil {
245		return x.Fingerprint
246	}
247	return ""
248}
249
250func (x *GetSigningKeyResponse) GetCommitterName() string {
251	if x != nil {
252		return x.CommitterName
253	}
254	return ""
255}
256
257func (x *GetSigningKeyResponse) GetCommitterEmail() string {
258	if x != nil {
259		return x.CommitterEmail
260	}
261	return ""
262}
263
264func (x *GetSigningKeyResponse) GetAllowedSigners() string {
265	if x != nil {
266		return x.AllowedSigners
267	}
268	return ""
269}
270
271// RotateOIDCKeyRequest is empty.
272type RotateOIDCKeyRequest struct {
273	state         protoimpl.MessageState `protogen:"open.v1"`
274	unknownFields protoimpl.UnknownFields
275	sizeCache     protoimpl.SizeCache
276}
277
278func (x *RotateOIDCKeyRequest) Reset() {
279	*x = RotateOIDCKeyRequest{}
280	mi := &file_ermite_server_proto_msgTypes[4]
281	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
282	ms.StoreMessageInfo(mi)
283}
284
285func (x *RotateOIDCKeyRequest) String() string {
286	return protoimpl.X.MessageStringOf(x)
287}
288
289func (*RotateOIDCKeyRequest) ProtoMessage() {}
290
291func (x *RotateOIDCKeyRequest) ProtoReflect() protoreflect.Message {
292	mi := &file_ermite_server_proto_msgTypes[4]
293	if x != nil {
294		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
295		if ms.LoadMessageInfo() == nil {
296			ms.StoreMessageInfo(mi)
297		}
298		return ms
299	}
300	return mi.MessageOf(x)
301}
302
303// Deprecated: Use RotateOIDCKeyRequest.ProtoReflect.Descriptor instead.
304func (*RotateOIDCKeyRequest) Descriptor() ([]byte, []int) {
305	return file_ermite_server_proto_rawDescGZIP(), []int{4}
306}
307
308// RotateOIDCKeyResponse describes the new signing key of the ID tokens.
309type RotateOIDCKeyResponse struct {
310	state protoimpl.MessageState `protogen:"open.v1"`
311	// Issuer is the "iss" of the ID tokens, for example
312	// "https://git.example.com/-/oidc". Its discovery document is at
313	// "<issuer>/.well-known/openid-configuration".
314	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
315	// Kid is the key id of the new key, the "kid" of the tokens it signs: the
316	// RFC 7638 thumbprint of its public key, base64url without padding.
317	Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"`
318	// RetiredKid is the key id of the key it replaces; empty when there was
319	// none.
320	RetiredKid string `protobuf:"bytes,3,opt,name=retired_kid,json=retiredKid,proto3" json:"retired_kid,omitempty"`
321	// RetiredUntil is when the replaced key leaves the JWKS. Unset when there
322	// was none.
323	RetiredUntil  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=retired_until,json=retiredUntil,proto3" json:"retired_until,omitempty"`
324	unknownFields protoimpl.UnknownFields
325	sizeCache     protoimpl.SizeCache
326}
327
328func (x *RotateOIDCKeyResponse) Reset() {
329	*x = RotateOIDCKeyResponse{}
330	mi := &file_ermite_server_proto_msgTypes[5]
331	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
332	ms.StoreMessageInfo(mi)
333}
334
335func (x *RotateOIDCKeyResponse) String() string {
336	return protoimpl.X.MessageStringOf(x)
337}
338
339func (*RotateOIDCKeyResponse) ProtoMessage() {}
340
341func (x *RotateOIDCKeyResponse) ProtoReflect() protoreflect.Message {
342	mi := &file_ermite_server_proto_msgTypes[5]
343	if x != nil {
344		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
345		if ms.LoadMessageInfo() == nil {
346			ms.StoreMessageInfo(mi)
347		}
348		return ms
349	}
350	return mi.MessageOf(x)
351}
352
353// Deprecated: Use RotateOIDCKeyResponse.ProtoReflect.Descriptor instead.
354func (*RotateOIDCKeyResponse) Descriptor() ([]byte, []int) {
355	return file_ermite_server_proto_rawDescGZIP(), []int{5}
356}
357
358func (x *RotateOIDCKeyResponse) GetIssuer() string {
359	if x != nil {
360		return x.Issuer
361	}
362	return ""
363}
364
365func (x *RotateOIDCKeyResponse) GetKid() string {
366	if x != nil {
367		return x.Kid
368	}
369	return ""
370}
371
372func (x *RotateOIDCKeyResponse) GetRetiredKid() string {
373	if x != nil {
374		return x.RetiredKid
375	}
376	return ""
377}
378
379func (x *RotateOIDCKeyResponse) GetRetiredUntil() *timestamppb.Timestamp {
380	if x != nil {
381		return x.RetiredUntil
382	}
383	return nil
384}
385
386var File_ermite_server_proto protoreflect.FileDescriptor
387
388const file_ermite_server_proto_rawDesc = "" +
389	"\n" +
390	"\x13ermite/server.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"\x13\n" +
391	"\x11GetVersionRequest\"J\n" +
392	"\x12GetVersionResponse\x12\x18\n" +
393	"\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" +
394	"\bfeatures\x18\x02 \x03(\tR\bfeatures\"\x16\n" +
395	"\x14GetSigningKeyRequest\"\xd1\x01\n" +
396	"\x15GetSigningKeyResponse\x12\x1d\n" +
397	"\n" +
398	"public_key\x18\x01 \x01(\tR\tpublicKey\x12 \n" +
399	"\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x12%\n" +
400	"\x0ecommitter_name\x18\x03 \x01(\tR\rcommitterName\x12'\n" +
401	"\x0fcommitter_email\x18\x04 \x01(\tR\x0ecommitterEmail\x12'\n" +
402	"\x0fallowed_signers\x18\x05 \x01(\tR\x0eallowedSigners\"\x16\n" +
403	"\x14RotateOIDCKeyRequest\"\xa3\x01\n" +
404	"\x15RotateOIDCKeyResponse\x12\x16\n" +
405	"\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x10\n" +
406	"\x03kid\x18\x02 \x01(\tR\x03kid\x12\x1f\n" +
407	"\vretired_kid\x18\x03 \x01(\tR\n" +
408	"retiredKid\x12?\n" +
409	"\rretired_until\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\fretiredUntil2\xf0\x01\n" +
410	"\rServerService\x12C\n" +
411	"\n" +
412	"GetVersion\x12\x19.ermite.GetVersionRequest\x1a\x1a.ermite.GetVersionResponse\x12L\n" +
413	"\rGetSigningKey\x12\x1c.ermite.GetSigningKeyRequest\x1a\x1d.ermite.GetSigningKeyResponse\x12L\n" +
414	"\rRotateOIDCKey\x12\x1c.ermite.RotateOIDCKeyRequest\x1a\x1d.ermite.RotateOIDCKeyResponseBr\n" +
415	"\n" +
416	"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"
417
418var (
419	file_ermite_server_proto_rawDescOnce sync.Once
420	file_ermite_server_proto_rawDescData []byte
421)
422
423func file_ermite_server_proto_rawDescGZIP() []byte {
424	file_ermite_server_proto_rawDescOnce.Do(func() {
425		file_ermite_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)))
426	})
427	return file_ermite_server_proto_rawDescData
428}
429
430var file_ermite_server_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
431var file_ermite_server_proto_goTypes = []any{
432	(*GetVersionRequest)(nil),     // 0: ermite.GetVersionRequest
433	(*GetVersionResponse)(nil),    // 1: ermite.GetVersionResponse
434	(*GetSigningKeyRequest)(nil),  // 2: ermite.GetSigningKeyRequest
435	(*GetSigningKeyResponse)(nil), // 3: ermite.GetSigningKeyResponse
436	(*RotateOIDCKeyRequest)(nil),  // 4: ermite.RotateOIDCKeyRequest
437	(*RotateOIDCKeyResponse)(nil), // 5: ermite.RotateOIDCKeyResponse
438	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
439}
440var file_ermite_server_proto_depIdxs = []int32{
441	6, // 0: ermite.RotateOIDCKeyResponse.retired_until:type_name -> google.protobuf.Timestamp
442	0, // 1: ermite.ServerService.GetVersion:input_type -> ermite.GetVersionRequest
443	2, // 2: ermite.ServerService.GetSigningKey:input_type -> ermite.GetSigningKeyRequest
444	4, // 3: ermite.ServerService.RotateOIDCKey:input_type -> ermite.RotateOIDCKeyRequest
445	1, // 4: ermite.ServerService.GetVersion:output_type -> ermite.GetVersionResponse
446	3, // 5: ermite.ServerService.GetSigningKey:output_type -> ermite.GetSigningKeyResponse
447	5, // 6: ermite.ServerService.RotateOIDCKey:output_type -> ermite.RotateOIDCKeyResponse
448	4, // [4:7] is the sub-list for method output_type
449	1, // [1:4] is the sub-list for method input_type
450	1, // [1:1] is the sub-list for extension type_name
451	1, // [1:1] is the sub-list for extension extendee
452	0, // [0:1] is the sub-list for field type_name
453}
454
455func init() { file_ermite_server_proto_init() }
456func file_ermite_server_proto_init() {
457	if File_ermite_server_proto != nil {
458		return
459	}
460	type x struct{}
461	out := protoimpl.TypeBuilder{
462		File: protoimpl.DescBuilder{
463			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
464			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)),
465			NumEnums:      0,
466			NumMessages:   6,
467			NumExtensions: 0,
468			NumServices:   1,
469		},
470		GoTypes:           file_ermite_server_proto_goTypes,
471		DependencyIndexes: file_ermite_server_proto_depIdxs,
472		MessageInfos:      file_ermite_server_proto_msgTypes,
473	}.Build()
474	File_ermite_server_proto = out.File
475	file_ermite_server_proto_goTypes = nil
476	file_ermite_server_proto_depIdxs = nil
477}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 18

↑↓ moveenter openesc close