[mirror] Scalable static site server for Git forges (like GitHub Pages)
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.10
4// protoc v6.30.2
5// source: schema.proto
6
7package git_pages
8
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16)
17
18const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23)
24
25type Type int32
26
27const (
28 // Invalid entry.
29 Type_InvalidEntry Type = 0
30 // Directory.
31 Type_Directory Type = 1
32 // Inline file. `Blob.Data` contains file contents.
33 Type_InlineFile Type = 2
34 // External file. `Blob.Data` contains object reference.
35 Type_ExternalFile Type = 3
36 // Symlink. `Blob.Data` contains relative path.
37 Type_Symlink Type = 4
38)
39
40// Enum value maps for Type.
41var (
42 Type_name = map[int32]string{
43 0: "InvalidEntry",
44 1: "Directory",
45 2: "InlineFile",
46 3: "ExternalFile",
47 4: "Symlink",
48 }
49 Type_value = map[string]int32{
50 "InvalidEntry": 0,
51 "Directory": 1,
52 "InlineFile": 2,
53 "ExternalFile": 3,
54 "Symlink": 4,
55 }
56)
57
58func (x Type) Enum() *Type {
59 p := new(Type)
60 *p = x
61 return p
62}
63
64func (x Type) String() string {
65 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
66}
67
68func (Type) Descriptor() protoreflect.EnumDescriptor {
69 return file_schema_proto_enumTypes[0].Descriptor()
70}
71
72func (Type) Type() protoreflect.EnumType {
73 return &file_schema_proto_enumTypes[0]
74}
75
76func (x Type) Number() protoreflect.EnumNumber {
77 return protoreflect.EnumNumber(x)
78}
79
80// Deprecated: Use Type.Descriptor instead.
81func (Type) EnumDescriptor() ([]byte, []int) {
82 return file_schema_proto_rawDescGZIP(), []int{0}
83}
84
85// Transformation names should match HTTP `Accept-Encoding:` header.
86type Transform int32
87
88const (
89 // No transformation.
90 Transform_Identity Transform = 0
91 // Zstandard compression.
92 Transform_Zstd Transform = 1
93)
94
95// Enum value maps for Transform.
96var (
97 Transform_name = map[int32]string{
98 0: "Identity",
99 1: "Zstd",
100 }
101 Transform_value = map[string]int32{
102 "Identity": 0,
103 "Zstd": 1,
104 }
105)
106
107func (x Transform) Enum() *Transform {
108 p := new(Transform)
109 *p = x
110 return p
111}
112
113func (x Transform) String() string {
114 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
115}
116
117func (Transform) Descriptor() protoreflect.EnumDescriptor {
118 return file_schema_proto_enumTypes[1].Descriptor()
119}
120
121func (Transform) Type() protoreflect.EnumType {
122 return &file_schema_proto_enumTypes[1]
123}
124
125func (x Transform) Number() protoreflect.EnumNumber {
126 return protoreflect.EnumNumber(x)
127}
128
129// Deprecated: Use Transform.Descriptor instead.
130func (Transform) EnumDescriptor() ([]byte, []int) {
131 return file_schema_proto_rawDescGZIP(), []int{1}
132}
133
134type AuditEvent int32
135
136const (
137 // Invalid event.
138 AuditEvent_InvalidEvent AuditEvent = 0
139 // A manifest was committed (a site was created or updated).
140 AuditEvent_CommitManifest AuditEvent = 1
141 // A manifest was deleted (a site was deleted).
142 AuditEvent_DeleteManifest AuditEvent = 2
143 // A domain was frozen.
144 AuditEvent_FreezeDomain AuditEvent = 3
145 // A domain was thawed.
146 AuditEvent_UnfreezeDomain AuditEvent = 4
147)
148
149// Enum value maps for AuditEvent.
150var (
151 AuditEvent_name = map[int32]string{
152 0: "InvalidEvent",
153 1: "CommitManifest",
154 2: "DeleteManifest",
155 3: "FreezeDomain",
156 4: "UnfreezeDomain",
157 }
158 AuditEvent_value = map[string]int32{
159 "InvalidEvent": 0,
160 "CommitManifest": 1,
161 "DeleteManifest": 2,
162 "FreezeDomain": 3,
163 "UnfreezeDomain": 4,
164 }
165)
166
167func (x AuditEvent) Enum() *AuditEvent {
168 p := new(AuditEvent)
169 *p = x
170 return p
171}
172
173func (x AuditEvent) String() string {
174 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
175}
176
177func (AuditEvent) Descriptor() protoreflect.EnumDescriptor {
178 return file_schema_proto_enumTypes[2].Descriptor()
179}
180
181func (AuditEvent) Type() protoreflect.EnumType {
182 return &file_schema_proto_enumTypes[2]
183}
184
185func (x AuditEvent) Number() protoreflect.EnumNumber {
186 return protoreflect.EnumNumber(x)
187}
188
189// Deprecated: Use AuditEvent.Descriptor instead.
190func (AuditEvent) EnumDescriptor() ([]byte, []int) {
191 return file_schema_proto_rawDescGZIP(), []int{2}
192}
193
194type Entry struct {
195 state protoimpl.MessageState `protogen:"open.v1"`
196 Type *Type `protobuf:"varint,1,opt,name=type,enum=Type" json:"type,omitempty"`
197 // Only present for `type == InlineFile` and `type == ExternalFile`.
198 // For transformed entries, refers to the pre-transformation (decompressed) size; otherwise
199 // equal to `compressed_size`.
200 OriginalSize *int64 `protobuf:"varint,7,opt,name=original_size,json=originalSize" json:"original_size,omitempty"`
201 // Only present for `type == InlineFile` and `type == ExternalFile`.
202 // For transformed entries, refers to the post-transformation (compressed) size; otherwise
203 // equal to `original_size`.
204 CompressedSize *int64 `protobuf:"varint,2,opt,name=compressed_size,json=compressedSize" json:"compressed_size,omitempty"`
205 // Meaning depends on `type`:
206 // - If `type == InlineFile`, contains file data.
207 // - If `type == ExternalFile`, contains blob name (an otherwise unspecified
208 // cryptographically secure content hash).
209 // - If `type == Symlink`, contains link target.
210 // - Otherwise not present.
211 Data []byte `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
212 // Only present for `type == InlineFile` and `type == ExternalFile` that
213 // have been transformed.
214 Transform *Transform `protobuf:"varint,4,opt,name=transform,enum=Transform" json:"transform,omitempty"`
215 // Only present for `type == InlineFile` and `type == ExternalFile`.
216 // Currently, optional (not present on certain legacy manifests).
217 ContentType *string `protobuf:"bytes,5,opt,name=content_type,json=contentType" json:"content_type,omitempty"`
218 // May be present for `type == InlineFile` and `type == ExternalFile`.
219 // Used to reduce the amount of work being done during git checkouts.
220 // The type of hash used is determined by the length:
221 // - 40 bytes: SHA1DC (as hex)
222 // - 64 bytes: SHA256 (as hex)
223 GitHash *string `protobuf:"bytes,6,opt,name=git_hash,json=gitHash" json:"git_hash,omitempty"`
224 unknownFields protoimpl.UnknownFields
225 sizeCache protoimpl.SizeCache
226}
227
228func (x *Entry) Reset() {
229 *x = Entry{}
230 mi := &file_schema_proto_msgTypes[0]
231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
232 ms.StoreMessageInfo(mi)
233}
234
235func (x *Entry) String() string {
236 return protoimpl.X.MessageStringOf(x)
237}
238
239func (*Entry) ProtoMessage() {}
240
241func (x *Entry) ProtoReflect() protoreflect.Message {
242 mi := &file_schema_proto_msgTypes[0]
243 if x != nil {
244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
245 if ms.LoadMessageInfo() == nil {
246 ms.StoreMessageInfo(mi)
247 }
248 return ms
249 }
250 return mi.MessageOf(x)
251}
252
253// Deprecated: Use Entry.ProtoReflect.Descriptor instead.
254func (*Entry) Descriptor() ([]byte, []int) {
255 return file_schema_proto_rawDescGZIP(), []int{0}
256}
257
258func (x *Entry) GetType() Type {
259 if x != nil && x.Type != nil {
260 return *x.Type
261 }
262 return Type_InvalidEntry
263}
264
265func (x *Entry) GetOriginalSize() int64 {
266 if x != nil && x.OriginalSize != nil {
267 return *x.OriginalSize
268 }
269 return 0
270}
271
272func (x *Entry) GetCompressedSize() int64 {
273 if x != nil && x.CompressedSize != nil {
274 return *x.CompressedSize
275 }
276 return 0
277}
278
279func (x *Entry) GetData() []byte {
280 if x != nil {
281 return x.Data
282 }
283 return nil
284}
285
286func (x *Entry) GetTransform() Transform {
287 if x != nil && x.Transform != nil {
288 return *x.Transform
289 }
290 return Transform_Identity
291}
292
293func (x *Entry) GetContentType() string {
294 if x != nil && x.ContentType != nil {
295 return *x.ContentType
296 }
297 return ""
298}
299
300func (x *Entry) GetGitHash() string {
301 if x != nil && x.GitHash != nil {
302 return *x.GitHash
303 }
304 return ""
305}
306
307// See https://docs.netlify.com/manage/routing/redirects/overview/ for details.
308// Only a subset of the Netlify specification is representable here.
309type RedirectRule struct {
310 state protoimpl.MessageState `protogen:"open.v1"`
311 From *string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
312 To *string `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"`
313 Status *uint32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
314 Force *bool `protobuf:"varint,4,opt,name=force" json:"force,omitempty"`
315 unknownFields protoimpl.UnknownFields
316 sizeCache protoimpl.SizeCache
317}
318
319func (x *RedirectRule) Reset() {
320 *x = RedirectRule{}
321 mi := &file_schema_proto_msgTypes[1]
322 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
323 ms.StoreMessageInfo(mi)
324}
325
326func (x *RedirectRule) String() string {
327 return protoimpl.X.MessageStringOf(x)
328}
329
330func (*RedirectRule) ProtoMessage() {}
331
332func (x *RedirectRule) ProtoReflect() protoreflect.Message {
333 mi := &file_schema_proto_msgTypes[1]
334 if x != nil {
335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
336 if ms.LoadMessageInfo() == nil {
337 ms.StoreMessageInfo(mi)
338 }
339 return ms
340 }
341 return mi.MessageOf(x)
342}
343
344// Deprecated: Use RedirectRule.ProtoReflect.Descriptor instead.
345func (*RedirectRule) Descriptor() ([]byte, []int) {
346 return file_schema_proto_rawDescGZIP(), []int{1}
347}
348
349func (x *RedirectRule) GetFrom() string {
350 if x != nil && x.From != nil {
351 return *x.From
352 }
353 return ""
354}
355
356func (x *RedirectRule) GetTo() string {
357 if x != nil && x.To != nil {
358 return *x.To
359 }
360 return ""
361}
362
363func (x *RedirectRule) GetStatus() uint32 {
364 if x != nil && x.Status != nil {
365 return *x.Status
366 }
367 return 0
368}
369
370func (x *RedirectRule) GetForce() bool {
371 if x != nil && x.Force != nil {
372 return *x.Force
373 }
374 return false
375}
376
377// See https://docs.netlify.com/manage/routing/headers/ for details.
378type Header struct {
379 state protoimpl.MessageState `protogen:"open.v1"`
380 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
381 Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"`
382 unknownFields protoimpl.UnknownFields
383 sizeCache protoimpl.SizeCache
384}
385
386func (x *Header) Reset() {
387 *x = Header{}
388 mi := &file_schema_proto_msgTypes[2]
389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
390 ms.StoreMessageInfo(mi)
391}
392
393func (x *Header) String() string {
394 return protoimpl.X.MessageStringOf(x)
395}
396
397func (*Header) ProtoMessage() {}
398
399func (x *Header) ProtoReflect() protoreflect.Message {
400 mi := &file_schema_proto_msgTypes[2]
401 if x != nil {
402 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
403 if ms.LoadMessageInfo() == nil {
404 ms.StoreMessageInfo(mi)
405 }
406 return ms
407 }
408 return mi.MessageOf(x)
409}
410
411// Deprecated: Use Header.ProtoReflect.Descriptor instead.
412func (*Header) Descriptor() ([]byte, []int) {
413 return file_schema_proto_rawDescGZIP(), []int{2}
414}
415
416func (x *Header) GetName() string {
417 if x != nil && x.Name != nil {
418 return *x.Name
419 }
420 return ""
421}
422
423func (x *Header) GetValues() []string {
424 if x != nil {
425 return x.Values
426 }
427 return nil
428}
429
430type HeaderRule struct {
431 state protoimpl.MessageState `protogen:"open.v1"`
432 Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
433 HeaderMap []*Header `protobuf:"bytes,2,rep,name=header_map,json=headerMap" json:"header_map,omitempty"`
434 unknownFields protoimpl.UnknownFields
435 sizeCache protoimpl.SizeCache
436}
437
438func (x *HeaderRule) Reset() {
439 *x = HeaderRule{}
440 mi := &file_schema_proto_msgTypes[3]
441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
442 ms.StoreMessageInfo(mi)
443}
444
445func (x *HeaderRule) String() string {
446 return protoimpl.X.MessageStringOf(x)
447}
448
449func (*HeaderRule) ProtoMessage() {}
450
451func (x *HeaderRule) ProtoReflect() protoreflect.Message {
452 mi := &file_schema_proto_msgTypes[3]
453 if x != nil {
454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
455 if ms.LoadMessageInfo() == nil {
456 ms.StoreMessageInfo(mi)
457 }
458 return ms
459 }
460 return mi.MessageOf(x)
461}
462
463// Deprecated: Use HeaderRule.ProtoReflect.Descriptor instead.
464func (*HeaderRule) Descriptor() ([]byte, []int) {
465 return file_schema_proto_rawDescGZIP(), []int{3}
466}
467
468func (x *HeaderRule) GetPath() string {
469 if x != nil && x.Path != nil {
470 return *x.Path
471 }
472 return ""
473}
474
475func (x *HeaderRule) GetHeaderMap() []*Header {
476 if x != nil {
477 return x.HeaderMap
478 }
479 return nil
480}
481
482type Problem struct {
483 state protoimpl.MessageState `protogen:"open.v1"`
484 Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
485 Cause *string `protobuf:"bytes,2,opt,name=cause" json:"cause,omitempty"`
486 unknownFields protoimpl.UnknownFields
487 sizeCache protoimpl.SizeCache
488}
489
490func (x *Problem) Reset() {
491 *x = Problem{}
492 mi := &file_schema_proto_msgTypes[4]
493 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
494 ms.StoreMessageInfo(mi)
495}
496
497func (x *Problem) String() string {
498 return protoimpl.X.MessageStringOf(x)
499}
500
501func (*Problem) ProtoMessage() {}
502
503func (x *Problem) ProtoReflect() protoreflect.Message {
504 mi := &file_schema_proto_msgTypes[4]
505 if x != nil {
506 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
507 if ms.LoadMessageInfo() == nil {
508 ms.StoreMessageInfo(mi)
509 }
510 return ms
511 }
512 return mi.MessageOf(x)
513}
514
515// Deprecated: Use Problem.ProtoReflect.Descriptor instead.
516func (*Problem) Descriptor() ([]byte, []int) {
517 return file_schema_proto_rawDescGZIP(), []int{4}
518}
519
520func (x *Problem) GetPath() string {
521 if x != nil && x.Path != nil {
522 return *x.Path
523 }
524 return ""
525}
526
527func (x *Problem) GetCause() string {
528 if x != nil && x.Cause != nil {
529 return *x.Cause
530 }
531 return ""
532}
533
534type Manifest struct {
535 state protoimpl.MessageState `protogen:"open.v1"`
536 // Source metadata.
537 RepoUrl *string `protobuf:"bytes,1,opt,name=repo_url,json=repoUrl" json:"repo_url,omitempty"`
538 Branch *string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"`
539 Commit *string `protobuf:"bytes,3,opt,name=commit" json:"commit,omitempty"`
540 // Site contents.
541 Contents map[string]*Entry `protobuf:"bytes,4,rep,name=contents" json:"contents,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
542 OriginalSize *int64 `protobuf:"varint,10,opt,name=original_size,json=originalSize" json:"original_size,omitempty"` // sum of each `entry.original_size`
543 CompressedSize *int64 `protobuf:"varint,5,opt,name=compressed_size,json=compressedSize" json:"compressed_size,omitempty"` // sum of each `entry.compressed_size`
544 StoredSize *int64 `protobuf:"varint,8,opt,name=stored_size,json=storedSize" json:"stored_size,omitempty"` // sum of deduplicated `entry.compressed_size` for external files only
545 // Netlify-style `_redirects` and `_headers` rules.
546 Redirects []*RedirectRule `protobuf:"bytes,6,rep,name=redirects" json:"redirects,omitempty"`
547 Headers []*HeaderRule `protobuf:"bytes,9,rep,name=headers" json:"headers,omitempty"`
548 // Diagnostics for non-fatal errors.
549 Problems []*Problem `protobuf:"bytes,7,rep,name=problems" json:"problems,omitempty"`
550 unknownFields protoimpl.UnknownFields
551 sizeCache protoimpl.SizeCache
552}
553
554func (x *Manifest) Reset() {
555 *x = Manifest{}
556 mi := &file_schema_proto_msgTypes[5]
557 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
558 ms.StoreMessageInfo(mi)
559}
560
561func (x *Manifest) String() string {
562 return protoimpl.X.MessageStringOf(x)
563}
564
565func (*Manifest) ProtoMessage() {}
566
567func (x *Manifest) ProtoReflect() protoreflect.Message {
568 mi := &file_schema_proto_msgTypes[5]
569 if x != nil {
570 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
571 if ms.LoadMessageInfo() == nil {
572 ms.StoreMessageInfo(mi)
573 }
574 return ms
575 }
576 return mi.MessageOf(x)
577}
578
579// Deprecated: Use Manifest.ProtoReflect.Descriptor instead.
580func (*Manifest) Descriptor() ([]byte, []int) {
581 return file_schema_proto_rawDescGZIP(), []int{5}
582}
583
584func (x *Manifest) GetRepoUrl() string {
585 if x != nil && x.RepoUrl != nil {
586 return *x.RepoUrl
587 }
588 return ""
589}
590
591func (x *Manifest) GetBranch() string {
592 if x != nil && x.Branch != nil {
593 return *x.Branch
594 }
595 return ""
596}
597
598func (x *Manifest) GetCommit() string {
599 if x != nil && x.Commit != nil {
600 return *x.Commit
601 }
602 return ""
603}
604
605func (x *Manifest) GetContents() map[string]*Entry {
606 if x != nil {
607 return x.Contents
608 }
609 return nil
610}
611
612func (x *Manifest) GetOriginalSize() int64 {
613 if x != nil && x.OriginalSize != nil {
614 return *x.OriginalSize
615 }
616 return 0
617}
618
619func (x *Manifest) GetCompressedSize() int64 {
620 if x != nil && x.CompressedSize != nil {
621 return *x.CompressedSize
622 }
623 return 0
624}
625
626func (x *Manifest) GetStoredSize() int64 {
627 if x != nil && x.StoredSize != nil {
628 return *x.StoredSize
629 }
630 return 0
631}
632
633func (x *Manifest) GetRedirects() []*RedirectRule {
634 if x != nil {
635 return x.Redirects
636 }
637 return nil
638}
639
640func (x *Manifest) GetHeaders() []*HeaderRule {
641 if x != nil {
642 return x.Headers
643 }
644 return nil
645}
646
647func (x *Manifest) GetProblems() []*Problem {
648 if x != nil {
649 return x.Problems
650 }
651 return nil
652}
653
654type AuditRecord struct {
655 state protoimpl.MessageState `protogen:"open.v1"`
656 // Audit event metadata.
657 Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
658 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"`
659 Event *AuditEvent `protobuf:"varint,3,opt,name=event,enum=AuditEvent" json:"event,omitempty"`
660 Principal *Principal `protobuf:"bytes,4,opt,name=principal" json:"principal,omitempty"`
661 // Affected resource.
662 Domain *string `protobuf:"bytes,10,opt,name=domain" json:"domain,omitempty"`
663 Project *string `protobuf:"bytes,11,opt,name=project" json:"project,omitempty"` // only for `*Manifest` events
664 // Snapshot of site manifest.
665 Manifest *Manifest `protobuf:"bytes,12,opt,name=manifest" json:"manifest,omitempty"` // only for `*Manifest` events
666 unknownFields protoimpl.UnknownFields
667 sizeCache protoimpl.SizeCache
668}
669
670func (x *AuditRecord) Reset() {
671 *x = AuditRecord{}
672 mi := &file_schema_proto_msgTypes[6]
673 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
674 ms.StoreMessageInfo(mi)
675}
676
677func (x *AuditRecord) String() string {
678 return protoimpl.X.MessageStringOf(x)
679}
680
681func (*AuditRecord) ProtoMessage() {}
682
683func (x *AuditRecord) ProtoReflect() protoreflect.Message {
684 mi := &file_schema_proto_msgTypes[6]
685 if x != nil {
686 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
687 if ms.LoadMessageInfo() == nil {
688 ms.StoreMessageInfo(mi)
689 }
690 return ms
691 }
692 return mi.MessageOf(x)
693}
694
695// Deprecated: Use AuditRecord.ProtoReflect.Descriptor instead.
696func (*AuditRecord) Descriptor() ([]byte, []int) {
697 return file_schema_proto_rawDescGZIP(), []int{6}
698}
699
700func (x *AuditRecord) GetId() int64 {
701 if x != nil && x.Id != nil {
702 return *x.Id
703 }
704 return 0
705}
706
707func (x *AuditRecord) GetTimestamp() *timestamppb.Timestamp {
708 if x != nil {
709 return x.Timestamp
710 }
711 return nil
712}
713
714func (x *AuditRecord) GetEvent() AuditEvent {
715 if x != nil && x.Event != nil {
716 return *x.Event
717 }
718 return AuditEvent_InvalidEvent
719}
720
721func (x *AuditRecord) GetPrincipal() *Principal {
722 if x != nil {
723 return x.Principal
724 }
725 return nil
726}
727
728func (x *AuditRecord) GetDomain() string {
729 if x != nil && x.Domain != nil {
730 return *x.Domain
731 }
732 return ""
733}
734
735func (x *AuditRecord) GetProject() string {
736 if x != nil && x.Project != nil {
737 return *x.Project
738 }
739 return ""
740}
741
742func (x *AuditRecord) GetManifest() *Manifest {
743 if x != nil {
744 return x.Manifest
745 }
746 return nil
747}
748
749type Principal struct {
750 state protoimpl.MessageState `protogen:"open.v1"`
751 IpAddress *string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"`
752 CliAdmin *bool `protobuf:"varint,2,opt,name=cli_admin,json=cliAdmin" json:"cli_admin,omitempty"`
753 unknownFields protoimpl.UnknownFields
754 sizeCache protoimpl.SizeCache
755}
756
757func (x *Principal) Reset() {
758 *x = Principal{}
759 mi := &file_schema_proto_msgTypes[7]
760 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
761 ms.StoreMessageInfo(mi)
762}
763
764func (x *Principal) String() string {
765 return protoimpl.X.MessageStringOf(x)
766}
767
768func (*Principal) ProtoMessage() {}
769
770func (x *Principal) ProtoReflect() protoreflect.Message {
771 mi := &file_schema_proto_msgTypes[7]
772 if x != nil {
773 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
774 if ms.LoadMessageInfo() == nil {
775 ms.StoreMessageInfo(mi)
776 }
777 return ms
778 }
779 return mi.MessageOf(x)
780}
781
782// Deprecated: Use Principal.ProtoReflect.Descriptor instead.
783func (*Principal) Descriptor() ([]byte, []int) {
784 return file_schema_proto_rawDescGZIP(), []int{7}
785}
786
787func (x *Principal) GetIpAddress() string {
788 if x != nil && x.IpAddress != nil {
789 return *x.IpAddress
790 }
791 return ""
792}
793
794func (x *Principal) GetCliAdmin() bool {
795 if x != nil && x.CliAdmin != nil {
796 return *x.CliAdmin
797 }
798 return false
799}
800
801var File_schema_proto protoreflect.FileDescriptor
802
803const file_schema_proto_rawDesc = "" +
804 "\n" +
805 "\fschema.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x01\n" +
806 "\x05Entry\x12\x19\n" +
807 "\x04type\x18\x01 \x01(\x0e2\x05.TypeR\x04type\x12#\n" +
808 "\roriginal_size\x18\a \x01(\x03R\foriginalSize\x12'\n" +
809 "\x0fcompressed_size\x18\x02 \x01(\x03R\x0ecompressedSize\x12\x12\n" +
810 "\x04data\x18\x03 \x01(\fR\x04data\x12(\n" +
811 "\ttransform\x18\x04 \x01(\x0e2\n" +
812 ".TransformR\ttransform\x12!\n" +
813 "\fcontent_type\x18\x05 \x01(\tR\vcontentType\x12\x19\n" +
814 "\bgit_hash\x18\x06 \x01(\tR\agitHash\"`\n" +
815 "\fRedirectRule\x12\x12\n" +
816 "\x04from\x18\x01 \x01(\tR\x04from\x12\x0e\n" +
817 "\x02to\x18\x02 \x01(\tR\x02to\x12\x16\n" +
818 "\x06status\x18\x03 \x01(\rR\x06status\x12\x14\n" +
819 "\x05force\x18\x04 \x01(\bR\x05force\"4\n" +
820 "\x06Header\x12\x12\n" +
821 "\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
822 "\x06values\x18\x02 \x03(\tR\x06values\"H\n" +
823 "\n" +
824 "HeaderRule\x12\x12\n" +
825 "\x04path\x18\x01 \x01(\tR\x04path\x12&\n" +
826 "\n" +
827 "header_map\x18\x02 \x03(\v2\a.HeaderR\theaderMap\"3\n" +
828 "\aProblem\x12\x12\n" +
829 "\x04path\x18\x01 \x01(\tR\x04path\x12\x14\n" +
830 "\x05cause\x18\x02 \x01(\tR\x05cause\"\xb8\x03\n" +
831 "\bManifest\x12\x19\n" +
832 "\brepo_url\x18\x01 \x01(\tR\arepoUrl\x12\x16\n" +
833 "\x06branch\x18\x02 \x01(\tR\x06branch\x12\x16\n" +
834 "\x06commit\x18\x03 \x01(\tR\x06commit\x123\n" +
835 "\bcontents\x18\x04 \x03(\v2\x17.Manifest.ContentsEntryR\bcontents\x12#\n" +
836 "\roriginal_size\x18\n" +
837 " \x01(\x03R\foriginalSize\x12'\n" +
838 "\x0fcompressed_size\x18\x05 \x01(\x03R\x0ecompressedSize\x12\x1f\n" +
839 "\vstored_size\x18\b \x01(\x03R\n" +
840 "storedSize\x12+\n" +
841 "\tredirects\x18\x06 \x03(\v2\r.RedirectRuleR\tredirects\x12%\n" +
842 "\aheaders\x18\t \x03(\v2\v.HeaderRuleR\aheaders\x12$\n" +
843 "\bproblems\x18\a \x03(\v2\b.ProblemR\bproblems\x1aC\n" +
844 "\rContentsEntry\x12\x10\n" +
845 "\x03key\x18\x01 \x01(\tR\x03key\x12\x1c\n" +
846 "\x05value\x18\x02 \x01(\v2\x06.EntryR\x05value:\x028\x01\"\xfd\x01\n" +
847 "\vAuditRecord\x12\x0e\n" +
848 "\x02id\x18\x01 \x01(\x03R\x02id\x128\n" +
849 "\ttimestamp\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12!\n" +
850 "\x05event\x18\x03 \x01(\x0e2\v.AuditEventR\x05event\x12(\n" +
851 "\tprincipal\x18\x04 \x01(\v2\n" +
852 ".PrincipalR\tprincipal\x12\x16\n" +
853 "\x06domain\x18\n" +
854 " \x01(\tR\x06domain\x12\x18\n" +
855 "\aproject\x18\v \x01(\tR\aproject\x12%\n" +
856 "\bmanifest\x18\f \x01(\v2\t.ManifestR\bmanifest\"G\n" +
857 "\tPrincipal\x12\x1d\n" +
858 "\n" +
859 "ip_address\x18\x01 \x01(\tR\tipAddress\x12\x1b\n" +
860 "\tcli_admin\x18\x02 \x01(\bR\bcliAdmin*V\n" +
861 "\x04Type\x12\x10\n" +
862 "\fInvalidEntry\x10\x00\x12\r\n" +
863 "\tDirectory\x10\x01\x12\x0e\n" +
864 "\n" +
865 "InlineFile\x10\x02\x12\x10\n" +
866 "\fExternalFile\x10\x03\x12\v\n" +
867 "\aSymlink\x10\x04*#\n" +
868 "\tTransform\x12\f\n" +
869 "\bIdentity\x10\x00\x12\b\n" +
870 "\x04Zstd\x10\x01*l\n" +
871 "\n" +
872 "AuditEvent\x12\x10\n" +
873 "\fInvalidEvent\x10\x00\x12\x12\n" +
874 "\x0eCommitManifest\x10\x01\x12\x12\n" +
875 "\x0eDeleteManifest\x10\x02\x12\x10\n" +
876 "\fFreezeDomain\x10\x03\x12\x12\n" +
877 "\x0eUnfreezeDomain\x10\x04B,Z*codeberg.org/git-pages/git-pages/git_pagesb\beditionsp\xe8\a"
878
879var (
880 file_schema_proto_rawDescOnce sync.Once
881 file_schema_proto_rawDescData []byte
882)
883
884func file_schema_proto_rawDescGZIP() []byte {
885 file_schema_proto_rawDescOnce.Do(func() {
886 file_schema_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_schema_proto_rawDesc), len(file_schema_proto_rawDesc)))
887 })
888 return file_schema_proto_rawDescData
889}
890
891var file_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
892var file_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
893var file_schema_proto_goTypes = []any{
894 (Type)(0), // 0: Type
895 (Transform)(0), // 1: Transform
896 (AuditEvent)(0), // 2: AuditEvent
897 (*Entry)(nil), // 3: Entry
898 (*RedirectRule)(nil), // 4: RedirectRule
899 (*Header)(nil), // 5: Header
900 (*HeaderRule)(nil), // 6: HeaderRule
901 (*Problem)(nil), // 7: Problem
902 (*Manifest)(nil), // 8: Manifest
903 (*AuditRecord)(nil), // 9: AuditRecord
904 (*Principal)(nil), // 10: Principal
905 nil, // 11: Manifest.ContentsEntry
906 (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
907}
908var file_schema_proto_depIdxs = []int32{
909 0, // 0: Entry.type:type_name -> Type
910 1, // 1: Entry.transform:type_name -> Transform
911 5, // 2: HeaderRule.header_map:type_name -> Header
912 11, // 3: Manifest.contents:type_name -> Manifest.ContentsEntry
913 4, // 4: Manifest.redirects:type_name -> RedirectRule
914 6, // 5: Manifest.headers:type_name -> HeaderRule
915 7, // 6: Manifest.problems:type_name -> Problem
916 12, // 7: AuditRecord.timestamp:type_name -> google.protobuf.Timestamp
917 2, // 8: AuditRecord.event:type_name -> AuditEvent
918 10, // 9: AuditRecord.principal:type_name -> Principal
919 8, // 10: AuditRecord.manifest:type_name -> Manifest
920 3, // 11: Manifest.ContentsEntry.value:type_name -> Entry
921 12, // [12:12] is the sub-list for method output_type
922 12, // [12:12] is the sub-list for method input_type
923 12, // [12:12] is the sub-list for extension type_name
924 12, // [12:12] is the sub-list for extension extendee
925 0, // [0:12] is the sub-list for field type_name
926}
927
928func init() { file_schema_proto_init() }
929func file_schema_proto_init() {
930 if File_schema_proto != nil {
931 return
932 }
933 type x struct{}
934 out := protoimpl.TypeBuilder{
935 File: protoimpl.DescBuilder{
936 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
937 RawDescriptor: unsafe.Slice(unsafe.StringData(file_schema_proto_rawDesc), len(file_schema_proto_rawDesc)),
938 NumEnums: 3,
939 NumMessages: 9,
940 NumExtensions: 0,
941 NumServices: 0,
942 },
943 GoTypes: file_schema_proto_goTypes,
944 DependencyIndexes: file_schema_proto_depIdxs,
945 EnumInfos: file_schema_proto_enumTypes,
946 MessageInfos: file_schema_proto_msgTypes,
947 }.Build()
948 File_schema_proto = out.File
949 file_schema_proto_goTypes = nil
950 file_schema_proto_depIdxs = nil
951}