-
Notifications
You must be signed in to change notification settings - Fork 568
/
pfs.pb.go
7599 lines (6725 loc) · 263 KB
/
pfs.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.4
// source: pfs/pfs.proto
package pfs
import (
reflect "reflect"
sync "sync"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
auth "github.com/pachyderm/pachyderm/v2/src/auth"
task "github.com/pachyderm/pachyderm/v2/src/task"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// These are the different places where a commit may be originated from
type OriginKind int32
const (
OriginKind_ORIGIN_KIND_UNKNOWN OriginKind = 0
OriginKind_USER OriginKind = 1
OriginKind_AUTO OriginKind = 2
OriginKind_FSCK OriginKind = 3
)
// Enum value maps for OriginKind.
var (
OriginKind_name = map[int32]string{
0: "ORIGIN_KIND_UNKNOWN",
1: "USER",
2: "AUTO",
3: "FSCK",
}
OriginKind_value = map[string]int32{
"ORIGIN_KIND_UNKNOWN": 0,
"USER": 1,
"AUTO": 2,
"FSCK": 3,
}
)
func (x OriginKind) Enum() *OriginKind {
p := new(OriginKind)
*p = x
return p
}
func (x OriginKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OriginKind) Descriptor() protoreflect.EnumDescriptor {
return file_pfs_pfs_proto_enumTypes[0].Descriptor()
}
func (OriginKind) Type() protoreflect.EnumType {
return &file_pfs_pfs_proto_enumTypes[0]
}
func (x OriginKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OriginKind.Descriptor instead.
func (OriginKind) EnumDescriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{0}
}
type FileType int32
const (
FileType_RESERVED FileType = 0
FileType_FILE FileType = 1
FileType_DIR FileType = 2
)
// Enum value maps for FileType.
var (
FileType_name = map[int32]string{
0: "RESERVED",
1: "FILE",
2: "DIR",
}
FileType_value = map[string]int32{
"RESERVED": 0,
"FILE": 1,
"DIR": 2,
}
)
func (x FileType) Enum() *FileType {
p := new(FileType)
*p = x
return p
}
func (x FileType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FileType) Descriptor() protoreflect.EnumDescriptor {
return file_pfs_pfs_proto_enumTypes[1].Descriptor()
}
func (FileType) Type() protoreflect.EnumType {
return &file_pfs_pfs_proto_enumTypes[1]
}
func (x FileType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FileType.Descriptor instead.
func (FileType) EnumDescriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{1}
}
// CommitState describes the states a commit can be in.
// The states are increasingly specific, i.e. a commit that is FINISHED also counts as STARTED.
type CommitState int32
const (
CommitState_COMMIT_STATE_UNKNOWN CommitState = 0
CommitState_STARTED CommitState = 1 // The commit has been started, all commits satisfy this state.
CommitState_READY CommitState = 2 // The commit has been started, and all of its provenant commits have been finished.
CommitState_FINISHING CommitState = 3 // The commit is in the process of being finished.
CommitState_FINISHED CommitState = 4 // The commit has been finished.
)
// Enum value maps for CommitState.
var (
CommitState_name = map[int32]string{
0: "COMMIT_STATE_UNKNOWN",
1: "STARTED",
2: "READY",
3: "FINISHING",
4: "FINISHED",
}
CommitState_value = map[string]int32{
"COMMIT_STATE_UNKNOWN": 0,
"STARTED": 1,
"READY": 2,
"FINISHING": 3,
"FINISHED": 4,
}
)
func (x CommitState) Enum() *CommitState {
p := new(CommitState)
*p = x
return p
}
func (x CommitState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CommitState) Descriptor() protoreflect.EnumDescriptor {
return file_pfs_pfs_proto_enumTypes[2].Descriptor()
}
func (CommitState) Type() protoreflect.EnumType {
return &file_pfs_pfs_proto_enumTypes[2]
}
func (x CommitState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CommitState.Descriptor instead.
func (CommitState) EnumDescriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{2}
}
type Delimiter int32
const (
Delimiter_NONE Delimiter = 0
Delimiter_JSON Delimiter = 1
Delimiter_LINE Delimiter = 2
Delimiter_SQL Delimiter = 3
Delimiter_CSV Delimiter = 4
)
// Enum value maps for Delimiter.
var (
Delimiter_name = map[int32]string{
0: "NONE",
1: "JSON",
2: "LINE",
3: "SQL",
4: "CSV",
}
Delimiter_value = map[string]int32{
"NONE": 0,
"JSON": 1,
"LINE": 2,
"SQL": 3,
"CSV": 4,
}
)
func (x Delimiter) Enum() *Delimiter {
p := new(Delimiter)
*p = x
return p
}
func (x Delimiter) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Delimiter) Descriptor() protoreflect.EnumDescriptor {
return file_pfs_pfs_proto_enumTypes[3].Descriptor()
}
func (Delimiter) Type() protoreflect.EnumType {
return &file_pfs_pfs_proto_enumTypes[3]
}
func (x Delimiter) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Delimiter.Descriptor instead.
func (Delimiter) EnumDescriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{3}
}
type SQLDatabaseEgress_FileFormat_Type int32
const (
SQLDatabaseEgress_FileFormat_UNKNOWN SQLDatabaseEgress_FileFormat_Type = 0
SQLDatabaseEgress_FileFormat_CSV SQLDatabaseEgress_FileFormat_Type = 1
SQLDatabaseEgress_FileFormat_JSON SQLDatabaseEgress_FileFormat_Type = 2
SQLDatabaseEgress_FileFormat_PARQUET SQLDatabaseEgress_FileFormat_Type = 3
)
// Enum value maps for SQLDatabaseEgress_FileFormat_Type.
var (
SQLDatabaseEgress_FileFormat_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CSV",
2: "JSON",
3: "PARQUET",
}
SQLDatabaseEgress_FileFormat_Type_value = map[string]int32{
"UNKNOWN": 0,
"CSV": 1,
"JSON": 2,
"PARQUET": 3,
}
)
func (x SQLDatabaseEgress_FileFormat_Type) Enum() *SQLDatabaseEgress_FileFormat_Type {
p := new(SQLDatabaseEgress_FileFormat_Type)
*p = x
return p
}
func (x SQLDatabaseEgress_FileFormat_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SQLDatabaseEgress_FileFormat_Type) Descriptor() protoreflect.EnumDescriptor {
return file_pfs_pfs_proto_enumTypes[4].Descriptor()
}
func (SQLDatabaseEgress_FileFormat_Type) Type() protoreflect.EnumType {
return &file_pfs_pfs_proto_enumTypes[4]
}
func (x SQLDatabaseEgress_FileFormat_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SQLDatabaseEgress_FileFormat_Type.Descriptor instead.
func (SQLDatabaseEgress_FileFormat_Type) EnumDescriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{72, 0, 0}
}
type Repo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
}
func (x *Repo) Reset() {
*x = Repo{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Repo) autogeneratedString() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Repo) ProtoMessage() {}
func (x *Repo) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Repo.ProtoReflect.Descriptor instead.
func (*Repo) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{0}
}
func (x *Repo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Repo) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Repo) GetProject() *Project {
if x != nil {
return x.Project
}
return nil
}
type Branch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *Branch) Reset() {
*x = Branch{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Branch) autogeneratedString() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Branch) ProtoMessage() {}
func (x *Branch) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Branch.ProtoReflect.Descriptor instead.
func (*Branch) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{1}
}
func (x *Branch) GetRepo() *Repo {
if x != nil {
return x.Repo
}
return nil
}
func (x *Branch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type File struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Datum string `protobuf:"bytes,3,opt,name=datum,proto3" json:"datum,omitempty"`
}
func (x *File) Reset() {
*x = File{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *File) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*File) ProtoMessage() {}
func (x *File) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use File.ProtoReflect.Descriptor instead.
func (*File) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{2}
}
func (x *File) GetCommit() *Commit {
if x != nil {
return x.Commit
}
return nil
}
func (x *File) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *File) GetDatum() string {
if x != nil {
return x.Datum
}
return ""
}
// RepoInfo is the main data structure representing a Repo in etcd
type RepoInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"`
SizeBytesUpperBound int64 `protobuf:"varint,3,opt,name=size_bytes_upper_bound,json=sizeBytesUpperBound,proto3" json:"size_bytes_upper_bound,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Branches []*Branch `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"`
// Set by ListRepo and InspectRepo if Pachyderm's auth system is active, but
// not stored in etcd. To set a user's auth scope for a repo, use the
// Pachyderm Auth API (in src/client/auth/auth.proto)
AuthInfo *AuthInfo `protobuf:"bytes,6,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
Details *RepoInfo_Details `protobuf:"bytes,7,opt,name=details,proto3" json:"details,omitempty"`
}
func (x *RepoInfo) Reset() {
*x = RepoInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RepoInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RepoInfo) ProtoMessage() {}
func (x *RepoInfo) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RepoInfo.ProtoReflect.Descriptor instead.
func (*RepoInfo) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{3}
}
func (x *RepoInfo) GetRepo() *Repo {
if x != nil {
return x.Repo
}
return nil
}
func (x *RepoInfo) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *RepoInfo) GetSizeBytesUpperBound() int64 {
if x != nil {
return x.SizeBytesUpperBound
}
return 0
}
func (x *RepoInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *RepoInfo) GetBranches() []*Branch {
if x != nil {
return x.Branches
}
return nil
}
func (x *RepoInfo) GetAuthInfo() *AuthInfo {
if x != nil {
return x.AuthInfo
}
return nil
}
func (x *RepoInfo) GetDetails() *RepoInfo_Details {
if x != nil {
return x.Details
}
return nil
}
// AuthInfo includes the caller's access scope for a resource, and is returned
// by services like ListRepo, InspectRepo, and ListProject, but is not persisted in the database.
// It's used by the Pachyderm dashboard to render repo access appropriately.
// To set a user's auth scope for a resource, use the Pachyderm Auth API (in src/auth/auth.proto)
type AuthInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The callers access level to the relevant resource. These are very granular
// permissions - for the end user it makes sense to show them the roles
// they have instead.
Permissions []auth.Permission `protobuf:"varint,1,rep,packed,name=permissions,proto3,enum=auth_v2.Permission" json:"permissions,omitempty"`
// The caller's roles on the relevant resource. This includes inherited
// roles from the cluster, project, group membership, etc.
Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
}
func (x *AuthInfo) Reset() {
*x = AuthInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AuthInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AuthInfo) ProtoMessage() {}
func (x *AuthInfo) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AuthInfo.ProtoReflect.Descriptor instead.
func (*AuthInfo) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{4}
}
func (x *AuthInfo) GetPermissions() []auth.Permission {
if x != nil {
return x.Permissions
}
return nil
}
func (x *AuthInfo) GetRoles() []string {
if x != nil {
return x.Roles
}
return nil
}
type BranchInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
Head *Commit `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
Provenance []*Branch `protobuf:"bytes,3,rep,name=provenance,proto3" json:"provenance,omitempty"`
Subvenance []*Branch `protobuf:"bytes,4,rep,name=subvenance,proto3" json:"subvenance,omitempty"`
DirectProvenance []*Branch `protobuf:"bytes,5,rep,name=direct_provenance,json=directProvenance,proto3" json:"direct_provenance,omitempty"`
Trigger *Trigger `protobuf:"bytes,6,opt,name=trigger,proto3" json:"trigger,omitempty"`
}
func (x *BranchInfo) Reset() {
*x = BranchInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BranchInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BranchInfo) ProtoMessage() {}
func (x *BranchInfo) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BranchInfo.ProtoReflect.Descriptor instead.
func (*BranchInfo) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{5}
}
func (x *BranchInfo) GetBranch() *Branch {
if x != nil {
return x.Branch
}
return nil
}
func (x *BranchInfo) GetHead() *Commit {
if x != nil {
return x.Head
}
return nil
}
func (x *BranchInfo) GetProvenance() []*Branch {
if x != nil {
return x.Provenance
}
return nil
}
func (x *BranchInfo) GetSubvenance() []*Branch {
if x != nil {
return x.Subvenance
}
return nil
}
func (x *BranchInfo) GetDirectProvenance() []*Branch {
if x != nil {
return x.DirectProvenance
}
return nil
}
func (x *BranchInfo) GetTrigger() *Trigger {
if x != nil {
return x.Trigger
}
return nil
}
// Trigger defines the conditions under which a head is moved, and to which
// branch it is moved.
type Trigger struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Which branch this trigger refers to
Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
// All indicates that all conditions must be satisfied before the trigger
// happens, otherwise any conditions being satisfied will trigger it.
All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
// Triggers if the rate limit spec (cron expression) has been satisfied since
// the last trigger.
RateLimitSpec string `protobuf:"bytes,3,opt,name=rate_limit_spec,json=rateLimitSpec,proto3" json:"rate_limit_spec,omitempty"`
// Triggers if there's been `size` new data added since the last trigger.
Size string `protobuf:"bytes,4,opt,name=size,proto3" json:"size,omitempty"`
// Triggers if there's been `commits` new commits added since the last trigger.
Commits int64 `protobuf:"varint,5,opt,name=commits,proto3" json:"commits,omitempty"`
// Creates a background process which fires the trigger on the schedule
// provided by the cron spec.
// This condition is mutually exclusive with respect to the others, so
// setting this will result with the trigger only firing based on the cron
// schedule.
CronSpec string `protobuf:"bytes,6,opt,name=cron_spec,json=cronSpec,proto3" json:"cron_spec,omitempty"`
}
func (x *Trigger) Reset() {
*x = Trigger{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Trigger) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Trigger) ProtoMessage() {}
func (x *Trigger) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Trigger.ProtoReflect.Descriptor instead.
func (*Trigger) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{6}
}
func (x *Trigger) GetBranch() string {
if x != nil {
return x.Branch
}
return ""
}
func (x *Trigger) GetAll() bool {
if x != nil {
return x.All
}
return false
}
func (x *Trigger) GetRateLimitSpec() string {
if x != nil {
return x.RateLimitSpec
}
return ""
}
func (x *Trigger) GetSize() string {
if x != nil {
return x.Size
}
return ""
}
func (x *Trigger) GetCommits() int64 {
if x != nil {
return x.Commits
}
return 0
}
func (x *Trigger) GetCronSpec() string {
if x != nil {
return x.CronSpec
}
return ""
}
type CommitOrigin struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Kind OriginKind `protobuf:"varint,1,opt,name=kind,proto3,enum=pfs_v2.OriginKind" json:"kind,omitempty"`
}
func (x *CommitOrigin) Reset() {
*x = CommitOrigin{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CommitOrigin) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommitOrigin) ProtoMessage() {}
func (x *CommitOrigin) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommitOrigin.ProtoReflect.Descriptor instead.
func (*CommitOrigin) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{7}
}
func (x *CommitOrigin) GetKind() OriginKind {
if x != nil {
return x.Kind
}
return OriginKind_ORIGIN_KIND_UNKNOWN
}
// Commit is a reference to a commit (e.g. the collection of branches and the
// collection of currently-open commits in etcd are collections of Commit
// protos)
type Commit struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Repo *Repo `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// only used by the client
Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
}
func (x *Commit) Reset() {
*x = Commit{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Commit) autogeneratedString() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Commit) ProtoMessage() {}
func (x *Commit) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Commit.ProtoReflect.Descriptor instead.
func (*Commit) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{8}
}
func (x *Commit) GetRepo() *Repo {
if x != nil {
return x.Repo
}
return nil
}
func (x *Commit) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Commit) GetBranch() *Branch {
if x != nil {
return x.Branch
}
return nil
}
// CommitInfo is the main data structure representing a commit in etcd
type CommitInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
Origin *CommitOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
// description is a user-provided script describing this commit
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
ParentCommit *Commit `protobuf:"bytes,4,opt,name=parent_commit,json=parentCommit,proto3" json:"parent_commit,omitempty"`
ChildCommits []*Commit `protobuf:"bytes,5,rep,name=child_commits,json=childCommits,proto3" json:"child_commits,omitempty"`
Started *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=started,proto3" json:"started,omitempty"`
Finishing *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finishing,proto3" json:"finishing,omitempty"`
Finished *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished,proto3" json:"finished,omitempty"`
DirectProvenance []*Commit `protobuf:"bytes,13,rep,name=direct_provenance,json=directProvenance,proto3" json:"direct_provenance,omitempty"`
Error string `protobuf:"bytes,10,opt,name=error,proto3" json:"error,omitempty"`
SizeBytesUpperBound int64 `protobuf:"varint,11,opt,name=size_bytes_upper_bound,json=sizeBytesUpperBound,proto3" json:"size_bytes_upper_bound,omitempty"`
Details *CommitInfo_Details `protobuf:"bytes,12,opt,name=details,proto3" json:"details,omitempty"`
}
func (x *CommitInfo) Reset() {
*x = CommitInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_pfs_pfs_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CommitInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommitInfo) ProtoMessage() {}
func (x *CommitInfo) ProtoReflect() protoreflect.Message {
mi := &file_pfs_pfs_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead.
func (*CommitInfo) Descriptor() ([]byte, []int) {
return file_pfs_pfs_proto_rawDescGZIP(), []int{9}
}
func (x *CommitInfo) GetCommit() *Commit {
if x != nil {
return x.Commit
}