repo.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/repo.proto
8
9package ermite
10
11import (
12	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
15	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
16	reflect "reflect"
17	sync "sync"
18	unsafe "unsafe"
19)
20
21const (
22	// Verify that this generated code is sufficiently up-to-date.
23	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24	// Verify that runtime/protoimpl is sufficiently up-to-date.
25	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26)
27
28// Visibility says who may read a repository.
29type Visibility int32
30
31const (
32	// Not set. In requests, the server applies its default (private on create,
33	// unchanged on update). Never returned by the server.
34	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
35	// Anyone, including anonymous callers, may read the repository.
36	Visibility_VISIBILITY_PUBLIC Visibility = 1
37	// Only callers holding the repo:read scope on the repository may read it.
38	// Everyone else gets not_found, never permission_denied.
39	Visibility_VISIBILITY_PRIVATE Visibility = 2
40)
41
42// Enum value maps for Visibility.
43var (
44	Visibility_name = map[int32]string{
45		0: "VISIBILITY_UNSPECIFIED",
46		1: "VISIBILITY_PUBLIC",
47		2: "VISIBILITY_PRIVATE",
48	}
49	Visibility_value = map[string]int32{
50		"VISIBILITY_UNSPECIFIED": 0,
51		"VISIBILITY_PUBLIC":      1,
52		"VISIBILITY_PRIVATE":     2,
53	}
54)
55
56func (x Visibility) Enum() *Visibility {
57	p := new(Visibility)
58	*p = x
59	return p
60}
61
62func (x Visibility) String() string {
63	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
64}
65
66func (Visibility) Descriptor() protoreflect.EnumDescriptor {
67	return file_ermite_repo_proto_enumTypes[0].Descriptor()
68}
69
70func (Visibility) Type() protoreflect.EnumType {
71	return &file_ermite_repo_proto_enumTypes[0]
72}
73
74func (x Visibility) Number() protoreflect.EnumNumber {
75	return protoreflect.EnumNumber(x)
76}
77
78// Deprecated: Use Visibility.Descriptor instead.
79func (Visibility) EnumDescriptor() ([]byte, []int) {
80	return file_ermite_repo_proto_rawDescGZIP(), []int{0}
81}
82
83// RepoSettings are the settings of a repository that govern its merge
84// requests.
85type RepoSettings struct {
86	state protoimpl.MessageState `protogen:"open.v1"`
87	// AllowedMergeModes are the modes with which a merge request of the
88	// repository may be merged. It is never empty in a response and has no
89	// duplicate. Both MERGE_MODE_FAST_FORWARD and MERGE_MODE_SQUASH are allowed
90	// by default. MERGE_MODE_UNSPECIFIED is rejected.
91	AllowedMergeModes []MergeMode `protobuf:"varint,1,rep,packed,name=allowed_merge_modes,json=allowedMergeModes,proto3,enum=ermite.MergeMode" json:"allowed_merge_modes,omitempty"`
92	// FailingChecksBlock says whether a merge request whose checks fail cannot be
93	// merged. It is true at creation of the repository and always stored
94	// explicitly, so a later change of the server default never alters an
95	// existing repository.
96	FailingChecksBlock bool `protobuf:"varint,2,opt,name=failing_checks_block,json=failingChecksBlock,proto3" json:"failing_checks_block,omitempty"`
97	unknownFields      protoimpl.UnknownFields
98	sizeCache          protoimpl.SizeCache
99}
100
101func (x *RepoSettings) Reset() {
102	*x = RepoSettings{}
103	mi := &file_ermite_repo_proto_msgTypes[0]
104	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105	ms.StoreMessageInfo(mi)
106}
107
108func (x *RepoSettings) String() string {
109	return protoimpl.X.MessageStringOf(x)
110}
111
112func (*RepoSettings) ProtoMessage() {}
113
114func (x *RepoSettings) ProtoReflect() protoreflect.Message {
115	mi := &file_ermite_repo_proto_msgTypes[0]
116	if x != nil {
117		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118		if ms.LoadMessageInfo() == nil {
119			ms.StoreMessageInfo(mi)
120		}
121		return ms
122	}
123	return mi.MessageOf(x)
124}
125
126// Deprecated: Use RepoSettings.ProtoReflect.Descriptor instead.
127func (*RepoSettings) Descriptor() ([]byte, []int) {
128	return file_ermite_repo_proto_rawDescGZIP(), []int{0}
129}
130
131func (x *RepoSettings) GetAllowedMergeModes() []MergeMode {
132	if x != nil {
133		return x.AllowedMergeModes
134	}
135	return nil
136}
137
138func (x *RepoSettings) GetFailingChecksBlock() bool {
139	if x != nil {
140		return x.FailingChecksBlock
141	}
142	return false
143}
144
145// Repo is the metadata of a repository. Git-owned state (refs, trees, history)
146// is read through GitService.
147type Repo struct {
148	state protoimpl.MessageState `protogen:"open.v1"`
149	// Name is the unique, lowercase repository name: 1-100 characters from
150	// [a-z0-9._-], without a ".git" suffix. It is also the URL path: /<name>.
151	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
152	// Description is a free one-line description. It may be empty.
153	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
154	// Visibility is who may read the repository.
155	Visibility Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=ermite.Visibility" json:"visibility,omitempty"`
156	// DefaultBranch is the short name of the branch HEAD points to, for example
157	// "main". It is set even when the branch does not exist yet (empty
158	// repository).
159	DefaultBranch string `protobuf:"bytes,4,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"`
160	// CreatedAt is when the repository was created.
161	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
162	// PushedAt is the time of the last push. It is unset until the first push.
163	PushedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=pushed_at,json=pushedAt,proto3" json:"pushed_at,omitempty"`
164	// Settings are the merge settings of the repository. Always set in a
165	// response, with the defaults for a repository that never changed them.
166	Settings *RepoSettings `protobuf:"bytes,7,opt,name=settings,proto3" json:"settings,omitempty"`
167	// Topics classify the repository, as on GitHub: at most 20, each 1-50
168	// characters from [a-z0-9-], starting with a letter or a digit, sorted
169	// and without duplicates.
170	Topics        []string `protobuf:"bytes,8,rep,name=topics,proto3" json:"topics,omitempty"`
171	unknownFields protoimpl.UnknownFields
172	sizeCache     protoimpl.SizeCache
173}
174
175func (x *Repo) Reset() {
176	*x = Repo{}
177	mi := &file_ermite_repo_proto_msgTypes[1]
178	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
179	ms.StoreMessageInfo(mi)
180}
181
182func (x *Repo) String() string {
183	return protoimpl.X.MessageStringOf(x)
184}
185
186func (*Repo) ProtoMessage() {}
187
188func (x *Repo) ProtoReflect() protoreflect.Message {
189	mi := &file_ermite_repo_proto_msgTypes[1]
190	if x != nil {
191		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192		if ms.LoadMessageInfo() == nil {
193			ms.StoreMessageInfo(mi)
194		}
195		return ms
196	}
197	return mi.MessageOf(x)
198}
199
200// Deprecated: Use Repo.ProtoReflect.Descriptor instead.
201func (*Repo) Descriptor() ([]byte, []int) {
202	return file_ermite_repo_proto_rawDescGZIP(), []int{1}
203}
204
205func (x *Repo) GetName() string {
206	if x != nil {
207		return x.Name
208	}
209	return ""
210}
211
212func (x *Repo) GetDescription() string {
213	if x != nil {
214		return x.Description
215	}
216	return ""
217}
218
219func (x *Repo) GetVisibility() Visibility {
220	if x != nil {
221		return x.Visibility
222	}
223	return Visibility_VISIBILITY_UNSPECIFIED
224}
225
226func (x *Repo) GetDefaultBranch() string {
227	if x != nil {
228		return x.DefaultBranch
229	}
230	return ""
231}
232
233func (x *Repo) GetCreatedAt() *timestamppb.Timestamp {
234	if x != nil {
235		return x.CreatedAt
236	}
237	return nil
238}
239
240func (x *Repo) GetPushedAt() *timestamppb.Timestamp {
241	if x != nil {
242		return x.PushedAt
243	}
244	return nil
245}
246
247func (x *Repo) GetSettings() *RepoSettings {
248	if x != nil {
249		return x.Settings
250	}
251	return nil
252}
253
254func (x *Repo) GetTopics() []string {
255	if x != nil {
256		return x.Topics
257	}
258	return nil
259}
260
261// ListReposRequest selects a page of repositories.
262type ListReposRequest struct {
263	state protoimpl.MessageState `protogen:"open.v1"`
264	// PageSize is the maximum number of repositories to return. 0 means the
265	// server default; values above the server maximum are lowered to it.
266	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
267	// PageToken is the next_page_token of a previous response, to get the page
268	// after it. Empty for the first page.
269	PageToken     string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
270	unknownFields protoimpl.UnknownFields
271	sizeCache     protoimpl.SizeCache
272}
273
274func (x *ListReposRequest) Reset() {
275	*x = ListReposRequest{}
276	mi := &file_ermite_repo_proto_msgTypes[2]
277	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278	ms.StoreMessageInfo(mi)
279}
280
281func (x *ListReposRequest) String() string {
282	return protoimpl.X.MessageStringOf(x)
283}
284
285func (*ListReposRequest) ProtoMessage() {}
286
287func (x *ListReposRequest) ProtoReflect() protoreflect.Message {
288	mi := &file_ermite_repo_proto_msgTypes[2]
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 ListReposRequest.ProtoReflect.Descriptor instead.
300func (*ListReposRequest) Descriptor() ([]byte, []int) {
301	return file_ermite_repo_proto_rawDescGZIP(), []int{2}
302}
303
304func (x *ListReposRequest) GetPageSize() int32 {
305	if x != nil {
306		return x.PageSize
307	}
308	return 0
309}
310
311func (x *ListReposRequest) GetPageToken() string {
312	if x != nil {
313		return x.PageToken
314	}
315	return ""
316}
317
318// ListReposResponse is one page of repositories.
319type ListReposResponse struct {
320	state protoimpl.MessageState `protogen:"open.v1"`
321	// Repos are the repositories of this page, ordered by name.
322	Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
323	// NextPageToken is passed as page_token to get the next page. Empty when
324	// there is no next page.
325	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
326	unknownFields protoimpl.UnknownFields
327	sizeCache     protoimpl.SizeCache
328}
329
330func (x *ListReposResponse) Reset() {
331	*x = ListReposResponse{}
332	mi := &file_ermite_repo_proto_msgTypes[3]
333	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
334	ms.StoreMessageInfo(mi)
335}
336
337func (x *ListReposResponse) String() string {
338	return protoimpl.X.MessageStringOf(x)
339}
340
341func (*ListReposResponse) ProtoMessage() {}
342
343func (x *ListReposResponse) ProtoReflect() protoreflect.Message {
344	mi := &file_ermite_repo_proto_msgTypes[3]
345	if x != nil {
346		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
347		if ms.LoadMessageInfo() == nil {
348			ms.StoreMessageInfo(mi)
349		}
350		return ms
351	}
352	return mi.MessageOf(x)
353}
354
355// Deprecated: Use ListReposResponse.ProtoReflect.Descriptor instead.
356func (*ListReposResponse) Descriptor() ([]byte, []int) {
357	return file_ermite_repo_proto_rawDescGZIP(), []int{3}
358}
359
360func (x *ListReposResponse) GetRepos() []*Repo {
361	if x != nil {
362		return x.Repos
363	}
364	return nil
365}
366
367func (x *ListReposResponse) GetNextPageToken() string {
368	if x != nil {
369		return x.NextPageToken
370	}
371	return ""
372}
373
374// GetRepoRequest names the repository to read.
375type GetRepoRequest struct {
376	state protoimpl.MessageState `protogen:"open.v1"`
377	// Repo is the repository name.
378	Repo          string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
379	unknownFields protoimpl.UnknownFields
380	sizeCache     protoimpl.SizeCache
381}
382
383func (x *GetRepoRequest) Reset() {
384	*x = GetRepoRequest{}
385	mi := &file_ermite_repo_proto_msgTypes[4]
386	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
387	ms.StoreMessageInfo(mi)
388}
389
390func (x *GetRepoRequest) String() string {
391	return protoimpl.X.MessageStringOf(x)
392}
393
394func (*GetRepoRequest) ProtoMessage() {}
395
396func (x *GetRepoRequest) ProtoReflect() protoreflect.Message {
397	mi := &file_ermite_repo_proto_msgTypes[4]
398	if x != nil {
399		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
400		if ms.LoadMessageInfo() == nil {
401			ms.StoreMessageInfo(mi)
402		}
403		return ms
404	}
405	return mi.MessageOf(x)
406}
407
408// Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.
409func (*GetRepoRequest) Descriptor() ([]byte, []int) {
410	return file_ermite_repo_proto_rawDescGZIP(), []int{4}
411}
412
413func (x *GetRepoRequest) GetRepo() string {
414	if x != nil {
415		return x.Repo
416	}
417	return ""
418}
419
420// GetRepoResponse holds the repository.
421type GetRepoResponse struct {
422	state protoimpl.MessageState `protogen:"open.v1"`
423	// Repo is the repository metadata.
424	Repo          *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
425	unknownFields protoimpl.UnknownFields
426	sizeCache     protoimpl.SizeCache
427}
428
429func (x *GetRepoResponse) Reset() {
430	*x = GetRepoResponse{}
431	mi := &file_ermite_repo_proto_msgTypes[5]
432	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
433	ms.StoreMessageInfo(mi)
434}
435
436func (x *GetRepoResponse) String() string {
437	return protoimpl.X.MessageStringOf(x)
438}
439
440func (*GetRepoResponse) ProtoMessage() {}
441
442func (x *GetRepoResponse) ProtoReflect() protoreflect.Message {
443	mi := &file_ermite_repo_proto_msgTypes[5]
444	if x != nil {
445		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
446		if ms.LoadMessageInfo() == nil {
447			ms.StoreMessageInfo(mi)
448		}
449		return ms
450	}
451	return mi.MessageOf(x)
452}
453
454// Deprecated: Use GetRepoResponse.ProtoReflect.Descriptor instead.
455func (*GetRepoResponse) Descriptor() ([]byte, []int) {
456	return file_ermite_repo_proto_rawDescGZIP(), []int{5}
457}
458
459func (x *GetRepoResponse) GetRepo() *Repo {
460	if x != nil {
461		return x.Repo
462	}
463	return nil
464}
465
466// CreateRepoRequest describes the repository to create.
467type CreateRepoRequest struct {
468	state protoimpl.MessageState `protogen:"open.v1"`
469	// Name is the name of the new repository. Names are lowercase; an uppercase
470	// name is rejected with invalid_argument.
471	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
472	// Description is an optional one-line description.
473	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
474	// Visibility of the new repository. VISIBILITY_UNSPECIFIED means private.
475	Visibility Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=ermite.Visibility" json:"visibility,omitempty"`
476	// Topics are the optional topics of the new repository (see Repo.topics);
477	// they are lowercased, sorted and deduplicated.
478	Topics        []string `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"`
479	unknownFields protoimpl.UnknownFields
480	sizeCache     protoimpl.SizeCache
481}
482
483func (x *CreateRepoRequest) Reset() {
484	*x = CreateRepoRequest{}
485	mi := &file_ermite_repo_proto_msgTypes[6]
486	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
487	ms.StoreMessageInfo(mi)
488}
489
490func (x *CreateRepoRequest) String() string {
491	return protoimpl.X.MessageStringOf(x)
492}
493
494func (*CreateRepoRequest) ProtoMessage() {}
495
496func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message {
497	mi := &file_ermite_repo_proto_msgTypes[6]
498	if x != nil {
499		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
500		if ms.LoadMessageInfo() == nil {
501			ms.StoreMessageInfo(mi)
502		}
503		return ms
504	}
505	return mi.MessageOf(x)
506}
507
508// Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.
509func (*CreateRepoRequest) Descriptor() ([]byte, []int) {
510	return file_ermite_repo_proto_rawDescGZIP(), []int{6}
511}
512
513func (x *CreateRepoRequest) GetName() string {
514	if x != nil {
515		return x.Name
516	}
517	return ""
518}
519
520func (x *CreateRepoRequest) GetDescription() string {
521	if x != nil {
522		return x.Description
523	}
524	return ""
525}
526
527func (x *CreateRepoRequest) GetVisibility() Visibility {
528	if x != nil {
529		return x.Visibility
530	}
531	return Visibility_VISIBILITY_UNSPECIFIED
532}
533
534func (x *CreateRepoRequest) GetTopics() []string {
535	if x != nil {
536		return x.Topics
537	}
538	return nil
539}
540
541// CreateRepoResponse holds the new repository.
542type CreateRepoResponse struct {
543	state protoimpl.MessageState `protogen:"open.v1"`
544	// Repo is the created repository.
545	Repo          *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
546	unknownFields protoimpl.UnknownFields
547	sizeCache     protoimpl.SizeCache
548}
549
550func (x *CreateRepoResponse) Reset() {
551	*x = CreateRepoResponse{}
552	mi := &file_ermite_repo_proto_msgTypes[7]
553	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
554	ms.StoreMessageInfo(mi)
555}
556
557func (x *CreateRepoResponse) String() string {
558	return protoimpl.X.MessageStringOf(x)
559}
560
561func (*CreateRepoResponse) ProtoMessage() {}
562
563func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message {
564	mi := &file_ermite_repo_proto_msgTypes[7]
565	if x != nil {
566		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
567		if ms.LoadMessageInfo() == nil {
568			ms.StoreMessageInfo(mi)
569		}
570		return ms
571	}
572	return mi.MessageOf(x)
573}
574
575// Deprecated: Use CreateRepoResponse.ProtoReflect.Descriptor instead.
576func (*CreateRepoResponse) Descriptor() ([]byte, []int) {
577	return file_ermite_repo_proto_rawDescGZIP(), []int{7}
578}
579
580func (x *CreateRepoResponse) GetRepo() *Repo {
581	if x != nil {
582		return x.Repo
583	}
584	return nil
585}
586
587// UpdateRepoRequest changes some fields of a repository.
588type UpdateRepoRequest struct {
589	state protoimpl.MessageState `protogen:"open.v1"`
590	// Repo is the name of the repository to change. Repositories cannot be
591	// renamed.
592	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
593	// Description is the new description. Used only if update_mask contains
594	// "description"; an empty value then clears it.
595	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
596	// Visibility is the new visibility. Used only if update_mask contains
597	// "visibility"; it must not be VISIBILITY_UNSPECIFIED then.
598	Visibility Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=ermite.Visibility" json:"visibility,omitempty"`
599	// DefaultBranch is the short name of the new default branch. Used only if
600	// update_mask contains "default_branch". The branch must exist, otherwise
601	// the call fails with failed_precondition.
602	DefaultBranch string `protobuf:"bytes,4,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"`
603	// UpdateMask lists the fields to change: "description", "visibility",
604	// "default_branch", "topics", "settings.allowed_merge_modes" and/or
605	// "settings.failing_checks_block". "settings" stands for both settings
606	// paths. It must not be empty. Other paths are invalid_argument.
607	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
608	// Settings holds the new merge settings. Only the fields named in
609	// update_mask are used. allowed_merge_modes must then not be empty nor
610	// contain MERGE_MODE_UNSPECIFIED, otherwise the call fails with
611	// invalid_argument. Changing settings needs the repo:admin scope, like any
612	// other field.
613	Settings *RepoSettings `protobuf:"bytes,6,opt,name=settings,proto3" json:"settings,omitempty"`
614	// Topics replace the topics of the repository (see Repo.topics). Used only
615	// if update_mask contains "topics"; an empty list then clears them.
616	Topics        []string `protobuf:"bytes,7,rep,name=topics,proto3" json:"topics,omitempty"`
617	unknownFields protoimpl.UnknownFields
618	sizeCache     protoimpl.SizeCache
619}
620
621func (x *UpdateRepoRequest) Reset() {
622	*x = UpdateRepoRequest{}
623	mi := &file_ermite_repo_proto_msgTypes[8]
624	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
625	ms.StoreMessageInfo(mi)
626}
627
628func (x *UpdateRepoRequest) String() string {
629	return protoimpl.X.MessageStringOf(x)
630}
631
632func (*UpdateRepoRequest) ProtoMessage() {}
633
634func (x *UpdateRepoRequest) ProtoReflect() protoreflect.Message {
635	mi := &file_ermite_repo_proto_msgTypes[8]
636	if x != nil {
637		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
638		if ms.LoadMessageInfo() == nil {
639			ms.StoreMessageInfo(mi)
640		}
641		return ms
642	}
643	return mi.MessageOf(x)
644}
645
646// Deprecated: Use UpdateRepoRequest.ProtoReflect.Descriptor instead.
647func (*UpdateRepoRequest) Descriptor() ([]byte, []int) {
648	return file_ermite_repo_proto_rawDescGZIP(), []int{8}
649}
650
651func (x *UpdateRepoRequest) GetRepo() string {
652	if x != nil {
653		return x.Repo
654	}
655	return ""
656}
657
658func (x *UpdateRepoRequest) GetDescription() string {
659	if x != nil {
660		return x.Description
661	}
662	return ""
663}
664
665func (x *UpdateRepoRequest) GetVisibility() Visibility {
666	if x != nil {
667		return x.Visibility
668	}
669	return Visibility_VISIBILITY_UNSPECIFIED
670}
671
672func (x *UpdateRepoRequest) GetDefaultBranch() string {
673	if x != nil {
674		return x.DefaultBranch
675	}
676	return ""
677}
678
679func (x *UpdateRepoRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
680	if x != nil {
681		return x.UpdateMask
682	}
683	return nil
684}
685
686func (x *UpdateRepoRequest) GetSettings() *RepoSettings {
687	if x != nil {
688		return x.Settings
689	}
690	return nil
691}
692
693func (x *UpdateRepoRequest) GetTopics() []string {
694	if x != nil {
695		return x.Topics
696	}
697	return nil
698}
699
700// UpdateRepoResponse holds the repository after the update.
701type UpdateRepoResponse struct {
702	state protoimpl.MessageState `protogen:"open.v1"`
703	// Repo is the updated repository.
704	Repo          *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
705	unknownFields protoimpl.UnknownFields
706	sizeCache     protoimpl.SizeCache
707}
708
709func (x *UpdateRepoResponse) Reset() {
710	*x = UpdateRepoResponse{}
711	mi := &file_ermite_repo_proto_msgTypes[9]
712	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
713	ms.StoreMessageInfo(mi)
714}
715
716func (x *UpdateRepoResponse) String() string {
717	return protoimpl.X.MessageStringOf(x)
718}
719
720func (*UpdateRepoResponse) ProtoMessage() {}
721
722func (x *UpdateRepoResponse) ProtoReflect() protoreflect.Message {
723	mi := &file_ermite_repo_proto_msgTypes[9]
724	if x != nil {
725		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
726		if ms.LoadMessageInfo() == nil {
727			ms.StoreMessageInfo(mi)
728		}
729		return ms
730	}
731	return mi.MessageOf(x)
732}
733
734// Deprecated: Use UpdateRepoResponse.ProtoReflect.Descriptor instead.
735func (*UpdateRepoResponse) Descriptor() ([]byte, []int) {
736	return file_ermite_repo_proto_rawDescGZIP(), []int{9}
737}
738
739func (x *UpdateRepoResponse) GetRepo() *Repo {
740	if x != nil {
741		return x.Repo
742	}
743	return nil
744}
745
746// DeleteRepoRequest names the repository to delete.
747type DeleteRepoRequest struct {
748	state protoimpl.MessageState `protogen:"open.v1"`
749	// Repo is the repository name.
750	Repo          string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
751	unknownFields protoimpl.UnknownFields
752	sizeCache     protoimpl.SizeCache
753}
754
755func (x *DeleteRepoRequest) Reset() {
756	*x = DeleteRepoRequest{}
757	mi := &file_ermite_repo_proto_msgTypes[10]
758	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
759	ms.StoreMessageInfo(mi)
760}
761
762func (x *DeleteRepoRequest) String() string {
763	return protoimpl.X.MessageStringOf(x)
764}
765
766func (*DeleteRepoRequest) ProtoMessage() {}
767
768func (x *DeleteRepoRequest) ProtoReflect() protoreflect.Message {
769	mi := &file_ermite_repo_proto_msgTypes[10]
770	if x != nil {
771		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
772		if ms.LoadMessageInfo() == nil {
773			ms.StoreMessageInfo(mi)
774		}
775		return ms
776	}
777	return mi.MessageOf(x)
778}
779
780// Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.
781func (*DeleteRepoRequest) Descriptor() ([]byte, []int) {
782	return file_ermite_repo_proto_rawDescGZIP(), []int{10}
783}
784
785func (x *DeleteRepoRequest) GetRepo() string {
786	if x != nil {
787		return x.Repo
788	}
789	return ""
790}
791
792// DeleteRepoResponse is empty.
793type DeleteRepoResponse struct {
794	state         protoimpl.MessageState `protogen:"open.v1"`
795	unknownFields protoimpl.UnknownFields
796	sizeCache     protoimpl.SizeCache
797}
798
799func (x *DeleteRepoResponse) Reset() {
800	*x = DeleteRepoResponse{}
801	mi := &file_ermite_repo_proto_msgTypes[11]
802	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
803	ms.StoreMessageInfo(mi)
804}
805
806func (x *DeleteRepoResponse) String() string {
807	return protoimpl.X.MessageStringOf(x)
808}
809
810func (*DeleteRepoResponse) ProtoMessage() {}
811
812func (x *DeleteRepoResponse) ProtoReflect() protoreflect.Message {
813	mi := &file_ermite_repo_proto_msgTypes[11]
814	if x != nil {
815		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
816		if ms.LoadMessageInfo() == nil {
817			ms.StoreMessageInfo(mi)
818		}
819		return ms
820	}
821	return mi.MessageOf(x)
822}
823
824// Deprecated: Use DeleteRepoResponse.ProtoReflect.Descriptor instead.
825func (*DeleteRepoResponse) Descriptor() ([]byte, []int) {
826	return file_ermite_repo_proto_rawDescGZIP(), []int{11}
827}
828
829var File_ermite_repo_proto protoreflect.FileDescriptor
830
831const file_ermite_repo_proto_rawDesc = "" +
832	"\n" +
833	"\x11ermite/repo.proto\x12\x06ermite\x1a google/protobuf/field_mask.proto\x1a\x12ermite/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x01\n" +
834	"\fRepoSettings\x12A\n" +
835	"\x13allowed_merge_modes\x18\x01 \x03(\x0e2\x11.ermite.MergeModeR\x11allowedMergeModes\x120\n" +
836	"\x14failing_checks_block\x18\x02 \x01(\bR\x12failingChecksBlock\"\xd5\x02\n" +
837	"\x04Repo\x12\x12\n" +
838	"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
839	"\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +
840	"\n" +
841	"visibility\x18\x03 \x01(\x0e2\x12.ermite.VisibilityR\n" +
842	"visibility\x12%\n" +
843	"\x0edefault_branch\x18\x04 \x01(\tR\rdefaultBranch\x129\n" +
844	"\n" +
845	"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x127\n" +
846	"\tpushed_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\bpushedAt\x120\n" +
847	"\bsettings\x18\a \x01(\v2\x14.ermite.RepoSettingsR\bsettings\x12\x16\n" +
848	"\x06topics\x18\b \x03(\tR\x06topics\"N\n" +
849	"\x10ListReposRequest\x12\x1b\n" +
850	"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
851	"\n" +
852	"page_token\x18\x02 \x01(\tR\tpageToken\"_\n" +
853	"\x11ListReposResponse\x12\"\n" +
854	"\x05repos\x18\x01 \x03(\v2\f.ermite.RepoR\x05repos\x12&\n" +
855	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"$\n" +
856	"\x0eGetRepoRequest\x12\x12\n" +
857	"\x04repo\x18\x01 \x01(\tR\x04repo\"3\n" +
858	"\x0fGetRepoResponse\x12 \n" +
859	"\x04repo\x18\x01 \x01(\v2\f.ermite.RepoR\x04repo\"\x95\x01\n" +
860	"\x11CreateRepoRequest\x12\x12\n" +
861	"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
862	"\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +
863	"\n" +
864	"visibility\x18\x03 \x01(\x0e2\x12.ermite.VisibilityR\n" +
865	"visibility\x12\x16\n" +
866	"\x06topics\x18\x04 \x03(\tR\x06topics\"6\n" +
867	"\x12CreateRepoResponse\x12 \n" +
868	"\x04repo\x18\x01 \x01(\v2\f.ermite.RepoR\x04repo\"\xab\x02\n" +
869	"\x11UpdateRepoRequest\x12\x12\n" +
870	"\x04repo\x18\x01 \x01(\tR\x04repo\x12 \n" +
871	"\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +
872	"\n" +
873	"visibility\x18\x03 \x01(\x0e2\x12.ermite.VisibilityR\n" +
874	"visibility\x12%\n" +
875	"\x0edefault_branch\x18\x04 \x01(\tR\rdefaultBranch\x12;\n" +
876	"\vupdate_mask\x18\x05 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
877	"updateMask\x120\n" +
878	"\bsettings\x18\x06 \x01(\v2\x14.ermite.RepoSettingsR\bsettings\x12\x16\n" +
879	"\x06topics\x18\a \x03(\tR\x06topics\"6\n" +
880	"\x12UpdateRepoResponse\x12 \n" +
881	"\x04repo\x18\x01 \x01(\v2\f.ermite.RepoR\x04repo\"'\n" +
882	"\x11DeleteRepoRequest\x12\x12\n" +
883	"\x04repo\x18\x01 \x01(\tR\x04repo\"\x14\n" +
884	"\x12DeleteRepoResponse*W\n" +
885	"\n" +
886	"Visibility\x12\x1a\n" +
887	"\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x15\n" +
888	"\x11VISIBILITY_PUBLIC\x10\x01\x12\x16\n" +
889	"\x12VISIBILITY_PRIVATE\x10\x022\xda\x02\n" +
890	"\vRepoService\x12@\n" +
891	"\tListRepos\x12\x18.ermite.ListReposRequest\x1a\x19.ermite.ListReposResponse\x12:\n" +
892	"\aGetRepo\x12\x16.ermite.GetRepoRequest\x1a\x17.ermite.GetRepoResponse\x12C\n" +
893	"\n" +
894	"CreateRepo\x12\x19.ermite.CreateRepoRequest\x1a\x1a.ermite.CreateRepoResponse\x12C\n" +
895	"\n" +
896	"UpdateRepo\x12\x19.ermite.UpdateRepoRequest\x1a\x1a.ermite.UpdateRepoResponse\x12C\n" +
897	"\n" +
898	"DeleteRepo\x12\x19.ermite.DeleteRepoRequest\x1a\x1a.ermite.DeleteRepoResponseBp\n" +
899	"\n" +
900	"com.ermiteB\tRepoProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3"
901
902var (
903	file_ermite_repo_proto_rawDescOnce sync.Once
904	file_ermite_repo_proto_rawDescData []byte
905)
906
907func file_ermite_repo_proto_rawDescGZIP() []byte {
908	file_ermite_repo_proto_rawDescOnce.Do(func() {
909		file_ermite_repo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_repo_proto_rawDesc), len(file_ermite_repo_proto_rawDesc)))
910	})
911	return file_ermite_repo_proto_rawDescData
912}
913
914var file_ermite_repo_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
915var file_ermite_repo_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
916var file_ermite_repo_proto_goTypes = []any{
917	(Visibility)(0),               // 0: ermite.Visibility
918	(*RepoSettings)(nil),          // 1: ermite.RepoSettings
919	(*Repo)(nil),                  // 2: ermite.Repo
920	(*ListReposRequest)(nil),      // 3: ermite.ListReposRequest
921	(*ListReposResponse)(nil),     // 4: ermite.ListReposResponse
922	(*GetRepoRequest)(nil),        // 5: ermite.GetRepoRequest
923	(*GetRepoResponse)(nil),       // 6: ermite.GetRepoResponse
924	(*CreateRepoRequest)(nil),     // 7: ermite.CreateRepoRequest
925	(*CreateRepoResponse)(nil),    // 8: ermite.CreateRepoResponse
926	(*UpdateRepoRequest)(nil),     // 9: ermite.UpdateRepoRequest
927	(*UpdateRepoResponse)(nil),    // 10: ermite.UpdateRepoResponse
928	(*DeleteRepoRequest)(nil),     // 11: ermite.DeleteRepoRequest
929	(*DeleteRepoResponse)(nil),    // 12: ermite.DeleteRepoResponse
930	(MergeMode)(0),                // 13: ermite.MergeMode
931	(*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
932	(*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask
933}
934var file_ermite_repo_proto_depIdxs = []int32{
935	13, // 0: ermite.RepoSettings.allowed_merge_modes:type_name -> ermite.MergeMode
936	0,  // 1: ermite.Repo.visibility:type_name -> ermite.Visibility
937	14, // 2: ermite.Repo.created_at:type_name -> google.protobuf.Timestamp
938	14, // 3: ermite.Repo.pushed_at:type_name -> google.protobuf.Timestamp
939	1,  // 4: ermite.Repo.settings:type_name -> ermite.RepoSettings
940	2,  // 5: ermite.ListReposResponse.repos:type_name -> ermite.Repo
941	2,  // 6: ermite.GetRepoResponse.repo:type_name -> ermite.Repo
942	0,  // 7: ermite.CreateRepoRequest.visibility:type_name -> ermite.Visibility
943	2,  // 8: ermite.CreateRepoResponse.repo:type_name -> ermite.Repo
944	0,  // 9: ermite.UpdateRepoRequest.visibility:type_name -> ermite.Visibility
945	15, // 10: ermite.UpdateRepoRequest.update_mask:type_name -> google.protobuf.FieldMask
946	1,  // 11: ermite.UpdateRepoRequest.settings:type_name -> ermite.RepoSettings
947	2,  // 12: ermite.UpdateRepoResponse.repo:type_name -> ermite.Repo
948	3,  // 13: ermite.RepoService.ListRepos:input_type -> ermite.ListReposRequest
949	5,  // 14: ermite.RepoService.GetRepo:input_type -> ermite.GetRepoRequest
950	7,  // 15: ermite.RepoService.CreateRepo:input_type -> ermite.CreateRepoRequest
951	9,  // 16: ermite.RepoService.UpdateRepo:input_type -> ermite.UpdateRepoRequest
952	11, // 17: ermite.RepoService.DeleteRepo:input_type -> ermite.DeleteRepoRequest
953	4,  // 18: ermite.RepoService.ListRepos:output_type -> ermite.ListReposResponse
954	6,  // 19: ermite.RepoService.GetRepo:output_type -> ermite.GetRepoResponse
955	8,  // 20: ermite.RepoService.CreateRepo:output_type -> ermite.CreateRepoResponse
956	10, // 21: ermite.RepoService.UpdateRepo:output_type -> ermite.UpdateRepoResponse
957	12, // 22: ermite.RepoService.DeleteRepo:output_type -> ermite.DeleteRepoResponse
958	18, // [18:23] is the sub-list for method output_type
959	13, // [13:18] is the sub-list for method input_type
960	13, // [13:13] is the sub-list for extension type_name
961	13, // [13:13] is the sub-list for extension extendee
962	0,  // [0:13] is the sub-list for field type_name
963}
964
965func init() { file_ermite_repo_proto_init() }
966func file_ermite_repo_proto_init() {
967	if File_ermite_repo_proto != nil {
968		return
969	}
970	file_ermite_types_proto_init()
971	type x struct{}
972	out := protoimpl.TypeBuilder{
973		File: protoimpl.DescBuilder{
974			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
975			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_repo_proto_rawDesc), len(file_ermite_repo_proto_rawDesc)),
976			NumEnums:      1,
977			NumMessages:   12,
978			NumExtensions: 0,
979			NumServices:   1,
980		},
981		GoTypes:           file_ermite_repo_proto_goTypes,
982		DependencyIndexes: file_ermite_repo_proto_depIdxs,
983		EnumInfos:         file_ermite_repo_proto_enumTypes,
984		MessageInfos:      file_ermite_repo_proto_msgTypes,
985	}.Build()
986	File_ermite_repo_proto = out.File
987	file_ermite_repo_proto_goTypes = nil
988	file_ermite_repo_proto_depIdxs = nil
989}

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