v0.3.0 5c335b8

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). The CI platform identifiers are "ci.secrets"
83	// (SecretService, VariableService and EnvironmentService, and in Job the
84	// secrets, vars, environment, permissions and trusted fields and Run.trusted),
85	// "ci.dispatch" (RunService.DispatchWorkflow), "ci.concurrency"
86	// (CI_STATUS_PENDING and RunJob.concurrency_group) and "ci.cache" (Job.cache).
87	Features      []string `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
88	unknownFields protoimpl.UnknownFields
89	sizeCache     protoimpl.SizeCache
90}
91
92func (x *GetVersionResponse) Reset() {
93	*x = GetVersionResponse{}
94	mi := &file_ermite_server_proto_msgTypes[1]
95	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
96	ms.StoreMessageInfo(mi)
97}
98
99func (x *GetVersionResponse) String() string {
100	return protoimpl.X.MessageStringOf(x)
101}
102
103func (*GetVersionResponse) ProtoMessage() {}
104
105func (x *GetVersionResponse) ProtoReflect() protoreflect.Message {
106	mi := &file_ermite_server_proto_msgTypes[1]
107	if x != nil {
108		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109		if ms.LoadMessageInfo() == nil {
110			ms.StoreMessageInfo(mi)
111		}
112		return ms
113	}
114	return mi.MessageOf(x)
115}
116
117// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.
118func (*GetVersionResponse) Descriptor() ([]byte, []int) {
119	return file_ermite_server_proto_rawDescGZIP(), []int{1}
120}
121
122func (x *GetVersionResponse) GetVersion() string {
123	if x != nil {
124		return x.Version
125	}
126	return ""
127}
128
129func (x *GetVersionResponse) GetFeatures() []string {
130	if x != nil {
131		return x.Features
132	}
133	return nil
134}
135
136// GetSigningKeyRequest is empty.
137type GetSigningKeyRequest struct {
138	state         protoimpl.MessageState `protogen:"open.v1"`
139	unknownFields protoimpl.UnknownFields
140	sizeCache     protoimpl.SizeCache
141}
142
143func (x *GetSigningKeyRequest) Reset() {
144	*x = GetSigningKeyRequest{}
145	mi := &file_ermite_server_proto_msgTypes[2]
146	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147	ms.StoreMessageInfo(mi)
148}
149
150func (x *GetSigningKeyRequest) String() string {
151	return protoimpl.X.MessageStringOf(x)
152}
153
154func (*GetSigningKeyRequest) ProtoMessage() {}
155
156func (x *GetSigningKeyRequest) ProtoReflect() protoreflect.Message {
157	mi := &file_ermite_server_proto_msgTypes[2]
158	if x != nil {
159		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160		if ms.LoadMessageInfo() == nil {
161			ms.StoreMessageInfo(mi)
162		}
163		return ms
164	}
165	return mi.MessageOf(x)
166}
167
168// Deprecated: Use GetSigningKeyRequest.ProtoReflect.Descriptor instead.
169func (*GetSigningKeyRequest) Descriptor() ([]byte, []int) {
170	return file_ermite_server_proto_rawDescGZIP(), []int{2}
171}
172
173// GetSigningKeyResponse describes the commit signing key of the server.
174type GetSigningKeyResponse struct {
175	state protoimpl.MessageState `protogen:"open.v1"`
176	// PublicKey is the public key as one OpenSSH authorized_keys line, for
177	// example "ssh-ed25519 AAAA...". Commits are signed in the SSH signature
178	// format (SSHSIG).
179	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
180	// Fingerprint is the SHA-256 fingerprint of the key, in the form
181	// "SHA256:<base64>" that ssh-keygen prints.
182	Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
183	// CommitterName is the name the server records as the committer of the
184	// commits it creates.
185	CommitterName string `protobuf:"bytes,3,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"`
186	// CommitterEmail is the email address the server records as the committer of
187	// the commits it creates. It is the principal of allowed_signers.
188	CommitterEmail string `protobuf:"bytes,4,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
189	// AllowedSigners is a ready-to-use line for an allowed signers file
190	// ("<committer_email> <public_key>"), to verify these commits with
191	// "git config gpg.ssh.allowedSignersFile".
192	AllowedSigners string `protobuf:"bytes,5,opt,name=allowed_signers,json=allowedSigners,proto3" json:"allowed_signers,omitempty"`
193	unknownFields  protoimpl.UnknownFields
194	sizeCache      protoimpl.SizeCache
195}
196
197func (x *GetSigningKeyResponse) Reset() {
198	*x = GetSigningKeyResponse{}
199	mi := &file_ermite_server_proto_msgTypes[3]
200	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
201	ms.StoreMessageInfo(mi)
202}
203
204func (x *GetSigningKeyResponse) String() string {
205	return protoimpl.X.MessageStringOf(x)
206}
207
208func (*GetSigningKeyResponse) ProtoMessage() {}
209
210func (x *GetSigningKeyResponse) ProtoReflect() protoreflect.Message {
211	mi := &file_ermite_server_proto_msgTypes[3]
212	if x != nil {
213		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
214		if ms.LoadMessageInfo() == nil {
215			ms.StoreMessageInfo(mi)
216		}
217		return ms
218	}
219	return mi.MessageOf(x)
220}
221
222// Deprecated: Use GetSigningKeyResponse.ProtoReflect.Descriptor instead.
223func (*GetSigningKeyResponse) Descriptor() ([]byte, []int) {
224	return file_ermite_server_proto_rawDescGZIP(), []int{3}
225}
226
227func (x *GetSigningKeyResponse) GetPublicKey() string {
228	if x != nil {
229		return x.PublicKey
230	}
231	return ""
232}
233
234func (x *GetSigningKeyResponse) GetFingerprint() string {
235	if x != nil {
236		return x.Fingerprint
237	}
238	return ""
239}
240
241func (x *GetSigningKeyResponse) GetCommitterName() string {
242	if x != nil {
243		return x.CommitterName
244	}
245	return ""
246}
247
248func (x *GetSigningKeyResponse) GetCommitterEmail() string {
249	if x != nil {
250		return x.CommitterEmail
251	}
252	return ""
253}
254
255func (x *GetSigningKeyResponse) GetAllowedSigners() string {
256	if x != nil {
257		return x.AllowedSigners
258	}
259	return ""
260}
261
262var File_ermite_server_proto protoreflect.FileDescriptor
263
264const file_ermite_server_proto_rawDesc = "" +
265	"\n" +
266	"\x13ermite/server.proto\x12\x06ermite\"\x13\n" +
267	"\x11GetVersionRequest\"J\n" +
268	"\x12GetVersionResponse\x12\x18\n" +
269	"\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" +
270	"\bfeatures\x18\x02 \x03(\tR\bfeatures\"\x16\n" +
271	"\x14GetSigningKeyRequest\"\xd1\x01\n" +
272	"\x15GetSigningKeyResponse\x12\x1d\n" +
273	"\n" +
274	"public_key\x18\x01 \x01(\tR\tpublicKey\x12 \n" +
275	"\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x12%\n" +
276	"\x0ecommitter_name\x18\x03 \x01(\tR\rcommitterName\x12'\n" +
277	"\x0fcommitter_email\x18\x04 \x01(\tR\x0ecommitterEmail\x12'\n" +
278	"\x0fallowed_signers\x18\x05 \x01(\tR\x0eallowedSigners2\xa2\x01\n" +
279	"\rServerService\x12C\n" +
280	"\n" +
281	"GetVersion\x12\x19.ermite.GetVersionRequest\x1a\x1a.ermite.GetVersionResponse\x12L\n" +
282	"\rGetSigningKey\x12\x1c.ermite.GetSigningKeyRequest\x1a\x1d.ermite.GetSigningKeyResponseBr\n" +
283	"\n" +
284	"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"
285
286var (
287	file_ermite_server_proto_rawDescOnce sync.Once
288	file_ermite_server_proto_rawDescData []byte
289)
290
291func file_ermite_server_proto_rawDescGZIP() []byte {
292	file_ermite_server_proto_rawDescOnce.Do(func() {
293		file_ermite_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)))
294	})
295	return file_ermite_server_proto_rawDescData
296}
297
298var file_ermite_server_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
299var file_ermite_server_proto_goTypes = []any{
300	(*GetVersionRequest)(nil),     // 0: ermite.GetVersionRequest
301	(*GetVersionResponse)(nil),    // 1: ermite.GetVersionResponse
302	(*GetSigningKeyRequest)(nil),  // 2: ermite.GetSigningKeyRequest
303	(*GetSigningKeyResponse)(nil), // 3: ermite.GetSigningKeyResponse
304}
305var file_ermite_server_proto_depIdxs = []int32{
306	0, // 0: ermite.ServerService.GetVersion:input_type -> ermite.GetVersionRequest
307	2, // 1: ermite.ServerService.GetSigningKey:input_type -> ermite.GetSigningKeyRequest
308	1, // 2: ermite.ServerService.GetVersion:output_type -> ermite.GetVersionResponse
309	3, // 3: ermite.ServerService.GetSigningKey:output_type -> ermite.GetSigningKeyResponse
310	2, // [2:4] is the sub-list for method output_type
311	0, // [0:2] is the sub-list for method input_type
312	0, // [0:0] is the sub-list for extension type_name
313	0, // [0:0] is the sub-list for extension extendee
314	0, // [0:0] is the sub-list for field type_name
315}
316
317func init() { file_ermite_server_proto_init() }
318func file_ermite_server_proto_init() {
319	if File_ermite_server_proto != nil {
320		return
321	}
322	type x struct{}
323	out := protoimpl.TypeBuilder{
324		File: protoimpl.DescBuilder{
325			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
326			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_server_proto_rawDesc), len(file_ermite_server_proto_rawDesc)),
327			NumEnums:      0,
328			NumMessages:   4,
329			NumExtensions: 0,
330			NumServices:   1,
331		},
332		GoTypes:           file_ermite_server_proto_goTypes,
333		DependencyIndexes: file_ermite_server_proto_depIdxs,
334		MessageInfos:      file_ermite_server_proto_msgTypes,
335	}.Build()
336	File_ermite_server_proto = out.File
337	file_ermite_server_proto_goTypes = nil
338	file_ermite_server_proto_depIdxs = nil
339}

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