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