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

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