v0.2.0 49ac5fd

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	reflect "reflect"
15	sync "sync"
16	unsafe "unsafe"
17)
18
19const (
20	// Verify that this generated code is sufficiently up-to-date.
21	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22	// Verify that runtime/protoimpl is sufficiently up-to-date.
23	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24)
25
26// GetVersionRequest is empty.
27type GetVersionRequest struct {
28	state         protoimpl.MessageState `protogen:"open.v1"`
29	unknownFields protoimpl.UnknownFields
30	sizeCache     protoimpl.SizeCache
31}
32
33func (x *GetVersionRequest) Reset() {
34	*x = GetVersionRequest{}
35	mi := &file_ermite_server_proto_msgTypes[0]
36	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37	ms.StoreMessageInfo(mi)
38}
39
40func (x *GetVersionRequest) String() string {
41	return protoimpl.X.MessageStringOf(x)
42}
43
44func (*GetVersionRequest) ProtoMessage() {}
45
46func (x *GetVersionRequest) ProtoReflect() protoreflect.Message {
47	mi := &file_ermite_server_proto_msgTypes[0]
48	if x != nil {
49		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50		if ms.LoadMessageInfo() == nil {
51			ms.StoreMessageInfo(mi)
52		}
53		return ms
54	}
55	return mi.MessageOf(x)
56}
57
58// Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.
59func (*GetVersionRequest) Descriptor() ([]byte, []int) {
60	return file_ermite_server_proto_rawDescGZIP(), []int{0}
61}
62
63// GetVersionResponse describes the running server.
64type GetVersionResponse struct {
65	state protoimpl.MessageState `protogen:"open.v1"`
66	// Version is the server release, for example "v0.4.0", or "devel" for an
67	// untagged build. Informational: clients must not compare it to decide what
68	// is supported, they use features instead.
69	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
70	// Features lists identifiers of the optional capabilities of the contract
71	// that this server implements, for example "repo.update" or
72	// "events.resume". A client that needs a capability missing from this list
73	// should warn instead of failing on an unimplemented RPC or ignored field.
74	// Identifiers are lowercase, dot-separated and never reused. The CI
75	// identifiers are "ci.runs" (RunService runs, jobs, logs, checks, and the
76	// run_updated and job_updated events), "ci.runs.filters" (ListRuns honours
77	// its filters) and "ci.runners" (RunnerService, and RunService.ListRunners
78	// and RemoveRunner). The CI execution identifiers are "ci.actions"
79	// (RunnerService.ResolveActions and Job.github_token), "ci.annotations"
80	// (annotations in UpdateJob and CompleteJob, and RunService.ListAnnotations)
81	// and "ci.summaries" (RunnerService.UploadSummary and
82	// RunService.GetStepSummaries).
83	Features      []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
84	unknownFields protoimpl.UnknownFields
85	sizeCache     protoimpl.SizeCache
86}
87
88func (x *GetVersionResponse) Reset() {
89	*x = GetVersionResponse{}
90	mi := &file_ermite_server_proto_msgTypes[1]
91	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92	ms.StoreMessageInfo(mi)
93}
94
95func (x *GetVersionResponse) String() string {
96	return protoimpl.X.MessageStringOf(x)
97}
98
99func (*GetVersionResponse) ProtoMessage() {}
100
101func (x *GetVersionResponse) ProtoReflect() protoreflect.Message {
102	mi := &file_ermite_server_proto_msgTypes[1]
103	if x != nil {
104		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105		if ms.LoadMessageInfo() == nil {
106			ms.StoreMessageInfo(mi)
107		}
108		return ms
109	}
110	return mi.MessageOf(x)
111}
112
113// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
114func (*GetVersionResponse) Descriptor() ([]byte, []int) {
115	return file_ermite_server_proto_rawDescGZIP(), []int{1}
116}
117
118func (x *GetVersionResponse) GetVersion() string {
119	if x != nil {
120		return x.Version
121	}
122	return ""
123}
124
125func (x *GetVersionResponse) GetFeatures() []string {
126	if x != nil {
127		return x.Features
128	}
129	return nil
130}
131
132// GetSigningKeyRequest is empty.
133type GetSigningKeyRequest struct {
134	state         protoimpl.MessageState `protogen:"open.v1"`
135	unknownFields protoimpl.UnknownFields
136	sizeCache     protoimpl.SizeCache
137}
138
139func (x *GetSigningKeyRequest) Reset() {
140	*x = GetSigningKeyRequest{}
141	mi := &file_ermite_server_proto_msgTypes[2]
142	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143	ms.StoreMessageInfo(mi)
144}
145
146func (x *GetSigningKeyRequest) String() string {
147	return protoimpl.X.MessageStringOf(x)
148}
149
150func (*GetSigningKeyRequest) ProtoMessage() {}
151
152func (x *GetSigningKeyRequest) ProtoReflect() protoreflect.Message {
153	mi := &file_ermite_server_proto_msgTypes[2]
154	if x != nil {
155		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156		if ms.LoadMessageInfo() == nil {
157			ms.StoreMessageInfo(mi)
158		}
159		return ms
160	}
161	return mi.MessageOf(x)
162}
163
164// Deprecated: Use GetSigningKeyRequest.ProtoReflect.Descriptor instead.
165func (*GetSigningKeyRequest) Descriptor() ([]byte, []int) {
166	return file_ermite_server_proto_rawDescGZIP(), []int{2}
167}
168
169// GetSigningKeyResponse describes the commit signing key of the server.
170type GetSigningKeyResponse struct {
171	state protoimpl.MessageState `protogen:"open.v1"`
172	// PublicKey is the public key as one OpenSSH authorized_keys line, for
173	// example "ssh-ed25519 AAAA...". Commits are signed in the SSH signature
174	// format (SSHSIG).
175	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
176	// Fingerprint is the SHA-256 fingerprint of the key, in the form
177	// "SHA256:<base64>" that ssh-keygen prints.
178	Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
179	// CommitterName is the name the server records as the committer of the
180	// commits it creates.
181	CommitterName string `protobuf:"bytes,3,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"`
182	// CommitterEmail is the email address the server records as the committer of
183	// the commits it creates. It is the principal of allowed_signers.
184	CommitterEmail string `protobuf:"bytes,4,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
185	// AllowedSigners is a ready-to-use line for an allowed signers file
186	// ("<committer_email> <public_key>"), to verify these commits with
187	// "git config gpg.ssh.allowedSignersFile".
188	AllowedSigners string `protobuf:"bytes,5,opt,name=allowed_signers,json=allowedSigners,proto3" json:"allowed_signers,omitempty"`
189	unknownFields  protoimpl.UnknownFields
190	sizeCache      protoimpl.SizeCache
191}
192
193func (x *GetSigningKeyResponse) Reset() {
194	*x = GetSigningKeyResponse{}
195	mi := &file_ermite_server_proto_msgTypes[3]
196	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197	ms.StoreMessageInfo(mi)
198}
199
200func (x *GetSigningKeyResponse) String() string {
201	return protoimpl.X.MessageStringOf(x)
202}
203
204func (*GetSigningKeyResponse) ProtoMessage() {}
205
206func (x *GetSigningKeyResponse) ProtoReflect() protoreflect.Message {
207	mi := &file_ermite_server_proto_msgTypes[3]
208	if x != nil {
209		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
210		if ms.LoadMessageInfo() == nil {
211			ms.StoreMessageInfo(mi)
212		}
213		return ms
214	}
215	return mi.MessageOf(x)
216}
217
218// Deprecated: Use GetSigningKeyResponse.ProtoReflect.Descriptor instead.
219func (*GetSigningKeyResponse) Descriptor() ([]byte, []int) {
220	return file_ermite_server_proto_rawDescGZIP(), []int{3}
221}
222
223func (x *GetSigningKeyResponse) GetPublicKey() string {
224	if x != nil {
225		return x.PublicKey
226	}
227	return ""
228}
229
230func (x *GetSigningKeyResponse) GetFingerprint() string {
231	if x != nil {
232		return x.Fingerprint
233	}
234	return ""
235}
236
237func (x *GetSigningKeyResponse) GetCommitterName() string {
238	if x != nil {
239		return x.CommitterName
240	}
241	return ""
242}
243
244func (x *GetSigningKeyResponse) GetCommitterEmail() string {
245	if x != nil {
246		return x.CommitterEmail
247	}
248	return ""
249}
250
251func (x *GetSigningKeyResponse) GetAllowedSigners() string {
252	if x != nil {
253		return x.AllowedSigners
254	}
255	return ""
256}
257
258var File_ermite_server_proto protoreflect.FileDescriptor
259
260const file_ermite_server_proto_rawDesc = "" +
261	"\n" +
262	"\x13ermite/server.proto\x12\x06ermite\"\x13\n" +
263	"\x11GetVersionRequest\"J\n" +
264	"\x12GetVersionResponse\x12\x18\n" +
265	"\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" +
266	"\bfeatures\x18\x02 \x03(\tR\bfeatures\"\x16\n" +
267	"\x14GetSigningKeyRequest\"\xd1\x01\n" +
268	"\x15GetSigningKeyResponse\x12\x1d\n" +
269	"\n" +
270	"public_key\x18\x01 \x01(\tR\tpublicKey\x12 \n" +
271	"\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x12%\n" +
272	"\x0ecommitter_name\x18\x03 \x01(\tR\rcommitterName\x12'\n" +
273	"\x0fcommitter_email\x18\x04 \x01(\tR\x0ecommitterEmail\x12'\n" +
274	"\x0fallowed_signers\x18\x05 \x01(\tR\x0eallowedSigners2\xa2\x01\n" +
275	"\rServerService\x12C\n" +
276	"\n" +
277	"GetVersion\x12\x19.ermite.GetVersionRequest\x1a\x1a.ermite.GetVersionResponse\x12L\n" +
278	"\rGetSigningKey\x12\x1c.ermite.GetSigningKeyRequest\x1a\x1d.ermite.GetSigningKeyResponseBr\n" +
279	"\n" +
280	"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"
281
282var (
283	file_ermite_server_proto_rawDescOnce sync.Once
284	file_ermite_server_proto_rawDescData []byte
285)
286
287func file_ermite_server_proto_rawDescGZIP() []byte {
288	file_ermite_server_proto_rawDescOnce.Do(func() {
289		file_ermite_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)))
290	})
291	return file_ermite_server_proto_rawDescData
292}
293
294var file_ermite_server_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
295var file_ermite_server_proto_goTypes = []any{
296	(*GetVersionRequest)(nil),     // 0: ermite.GetVersionRequest
297	(*GetVersionResponse)(nil),    // 1: ermite.GetVersionResponse
298	(*GetSigningKeyRequest)(nil),  // 2: ermite.GetSigningKeyRequest
299	(*GetSigningKeyResponse)(nil), // 3: ermite.GetSigningKeyResponse
300}
301var file_ermite_server_proto_depIdxs = []int32{
302	0, // 0: ermite.ServerService.GetVersion:input_type -> ermite.GetVersionRequest
303	2, // 1: ermite.ServerService.GetSigningKey:input_type -> ermite.GetSigningKeyRequest
304	1, // 2: ermite.ServerService.GetVersion:output_type -> ermite.GetVersionResponse
305	3, // 3: ermite.ServerService.GetSigningKey:output_type -> ermite.GetSigningKeyResponse
306	2, // [2:4] is the sub-list for method output_type
307	0, // [0:2] is the sub-list for method input_type
308	0, // [0:0] is the sub-list for extension type_name
309	0, // [0:0] is the sub-list for extension extendee
310	0, // [0:0] is the sub-list for field type_name
311}
312
313func init() { file_ermite_server_proto_init() }
314func file_ermite_server_proto_init() {
315	if File_ermite_server_proto != nil {
316		return
317	}
318	type x struct{}
319	out := protoimpl.TypeBuilder{
320		File: protoimpl.DescBuilder{
321			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
322			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)),
323			NumEnums:      0,
324			NumMessages:   4,
325			NumExtensions: 0,
326			NumServices:   1,
327		},
328		GoTypes:           file_ermite_server_proto_goTypes,
329		DependencyIndexes: file_ermite_server_proto_depIdxs,
330		MessageInfos:      file_ermite_server_proto_msgTypes,
331	}.Build()
332	File_ermite_server_proto = out.File
333	file_ermite_server_proto_goTypes = nil
334	file_ermite_server_proto_depIdxs = nil
335}

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