v0.11.0 94ffd87

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

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