forked from ericchiang/k8s
/
generated.pb.go
6396 lines (6156 loc) · 164 KB
/
generated.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-gogo. DO NOT EDIT.
// source: k8s.io/api/flowcontrol/v1beta1/generated.proto
package v1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
"github.com/karlmutch/k8s/apis/meta/v1"
_ "github.com/karlmutch/k8s/runtime"
_ "github.com/karlmutch/k8s/runtime/schema"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// FlowDistinguisherMethod specifies the method of a flow distinguisher.
type FlowDistinguisherMethod struct {
// `type` is the type of flow distinguisher method
// The supported types are "ByUser" and "ByNamespace".
// Required.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} }
func (m *FlowDistinguisherMethod) String() string { return proto.CompactTextString(m) }
func (*FlowDistinguisherMethod) ProtoMessage() {}
func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{0}
}
func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowDistinguisherMethod.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src)
}
func (m *FlowDistinguisherMethod) XXX_Size() int {
return m.Size()
}
func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() {
xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m)
}
var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo
func (m *FlowDistinguisherMethod) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with
// similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
type FlowSchema struct {
// `metadata` is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// `spec` is the specification of the desired behavior of a FlowSchema.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec *FlowSchemaSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// `status` is the current status of a FlowSchema.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Status *FlowSchemaStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowSchema) Reset() { *m = FlowSchema{} }
func (m *FlowSchema) String() string { return proto.CompactTextString(m) }
func (*FlowSchema) ProtoMessage() {}
func (*FlowSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{1}
}
func (m *FlowSchema) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowSchema.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowSchema.Merge(m, src)
}
func (m *FlowSchema) XXX_Size() int {
return m.Size()
}
func (m *FlowSchema) XXX_DiscardUnknown() {
xxx_messageInfo_FlowSchema.DiscardUnknown(m)
}
var xxx_messageInfo_FlowSchema proto.InternalMessageInfo
func (m *FlowSchema) GetMetadata() *v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *FlowSchema) GetSpec() *FlowSchemaSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *FlowSchema) GetStatus() *FlowSchemaStatus {
if m != nil {
return m.Status
}
return nil
}
// FlowSchemaCondition describes conditions for a FlowSchema.
type FlowSchemaCondition struct {
// `type` is the type of the condition.
// Required.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// `message` is a human-readable message indicating details about last transition.
Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} }
func (m *FlowSchemaCondition) String() string { return proto.CompactTextString(m) }
func (*FlowSchemaCondition) ProtoMessage() {}
func (*FlowSchemaCondition) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{2}
}
func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowSchemaCondition.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowSchemaCondition.Merge(m, src)
}
func (m *FlowSchemaCondition) XXX_Size() int {
return m.Size()
}
func (m *FlowSchemaCondition) XXX_DiscardUnknown() {
xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m)
}
var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo
func (m *FlowSchemaCondition) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *FlowSchemaCondition) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *FlowSchemaCondition) GetLastTransitionTime() *v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *FlowSchemaCondition) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *FlowSchemaCondition) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// FlowSchemaList is a list of FlowSchema objects.
type FlowSchemaList struct {
// `metadata` is the standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// `items` is a list of FlowSchemas.
Items []*FlowSchema `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} }
func (m *FlowSchemaList) String() string { return proto.CompactTextString(m) }
func (*FlowSchemaList) ProtoMessage() {}
func (*FlowSchemaList) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{3}
}
func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowSchemaList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowSchemaList) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowSchemaList.Merge(m, src)
}
func (m *FlowSchemaList) XXX_Size() int {
return m.Size()
}
func (m *FlowSchemaList) XXX_DiscardUnknown() {
xxx_messageInfo_FlowSchemaList.DiscardUnknown(m)
}
var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo
func (m *FlowSchemaList) GetMetadata() *v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *FlowSchemaList) GetItems() []*FlowSchema {
if m != nil {
return m.Items
}
return nil
}
// FlowSchemaSpec describes how the FlowSchema's specification looks like.
type FlowSchemaSpec struct {
// `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot
// be resolved, the FlowSchema will be ignored and marked as invalid in its status.
// Required.
PriorityLevelConfiguration *PriorityLevelConfigurationReference `protobuf:"bytes,1,opt,name=priorityLevelConfiguration" json:"priorityLevelConfiguration,omitempty"`
// `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen
// FlowSchema is among those with the numerically lowest (which we take to be logically highest)
// MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000].
// Note that if the precedence is not specified, it will be set to 1000 as default.
// +optional
MatchingPrecedence *int32 `protobuf:"varint,2,opt,name=matchingPrecedence" json:"matchingPrecedence,omitempty"`
// `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema.
// `nil` specifies that the distinguisher is disabled and thus will always be the empty string.
// +optional
DistinguisherMethod *FlowDistinguisherMethod `protobuf:"bytes,3,opt,name=distinguisherMethod" json:"distinguisherMethod,omitempty"`
// `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if
// at least one member of rules matches the request.
// if it is an empty slice, there will be no requests matching the FlowSchema.
// +listType=atomic
// +optional
Rules []*PolicyRulesWithSubjects `protobuf:"bytes,4,rep,name=rules" json:"rules,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} }
func (m *FlowSchemaSpec) String() string { return proto.CompactTextString(m) }
func (*FlowSchemaSpec) ProtoMessage() {}
func (*FlowSchemaSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{4}
}
func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowSchemaSpec.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowSchemaSpec.Merge(m, src)
}
func (m *FlowSchemaSpec) XXX_Size() int {
return m.Size()
}
func (m *FlowSchemaSpec) XXX_DiscardUnknown() {
xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m)
}
var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo
func (m *FlowSchemaSpec) GetPriorityLevelConfiguration() *PriorityLevelConfigurationReference {
if m != nil {
return m.PriorityLevelConfiguration
}
return nil
}
func (m *FlowSchemaSpec) GetMatchingPrecedence() int32 {
if m != nil && m.MatchingPrecedence != nil {
return *m.MatchingPrecedence
}
return 0
}
func (m *FlowSchemaSpec) GetDistinguisherMethod() *FlowDistinguisherMethod {
if m != nil {
return m.DistinguisherMethod
}
return nil
}
func (m *FlowSchemaSpec) GetRules() []*PolicyRulesWithSubjects {
if m != nil {
return m.Rules
}
return nil
}
// FlowSchemaStatus represents the current state of a FlowSchema.
type FlowSchemaStatus struct {
// `conditions` is a list of the current states of FlowSchema.
// +listType=map
// +listMapKey=type
// +optional
Conditions []*FlowSchemaCondition `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} }
func (m *FlowSchemaStatus) String() string { return proto.CompactTextString(m) }
func (*FlowSchemaStatus) ProtoMessage() {}
func (*FlowSchemaStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{5}
}
func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FlowSchemaStatus.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowSchemaStatus.Merge(m, src)
}
func (m *FlowSchemaStatus) XXX_Size() int {
return m.Size()
}
func (m *FlowSchemaStatus) XXX_DiscardUnknown() {
xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m)
}
var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo
func (m *FlowSchemaStatus) GetConditions() []*FlowSchemaCondition {
if m != nil {
return m.Conditions
}
return nil
}
// GroupSubject holds detailed information for group-kind subject.
type GroupSubject struct {
// name is the user group that matches, or "*" to match all user groups.
// See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some
// well-known group names.
// Required.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupSubject) Reset() { *m = GroupSubject{} }
func (m *GroupSubject) String() string { return proto.CompactTextString(m) }
func (*GroupSubject) ProtoMessage() {}
func (*GroupSubject) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{6}
}
func (m *GroupSubject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GroupSubject.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GroupSubject) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupSubject.Merge(m, src)
}
func (m *GroupSubject) XXX_Size() int {
return m.Size()
}
func (m *GroupSubject) XXX_DiscardUnknown() {
xxx_messageInfo_GroupSubject.DiscardUnknown(m)
}
var xxx_messageInfo_GroupSubject proto.InternalMessageInfo
func (m *GroupSubject) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
// LimitResponse defines how to handle requests that can not be executed right now.
// +union
type LimitResponse struct {
// `type` is "Queue" or "Reject".
// "Queue" means that requests that can not be executed upon arrival
// are held in a queue until they can be executed or a queuing limit
// is reached.
// "Reject" means that requests that can not be executed upon arrival
// are rejected.
// Required.
// +unionDiscriminator
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// `queuing` holds the configuration parameters for queuing.
// This field may be non-empty only if `type` is `"Queue"`.
// +optional
Queuing *QueuingConfiguration `protobuf:"bytes,2,opt,name=queuing" json:"queuing,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LimitResponse) Reset() { *m = LimitResponse{} }
func (m *LimitResponse) String() string { return proto.CompactTextString(m) }
func (*LimitResponse) ProtoMessage() {}
func (*LimitResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{7}
}
func (m *LimitResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_LimitResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *LimitResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LimitResponse.Merge(m, src)
}
func (m *LimitResponse) XXX_Size() int {
return m.Size()
}
func (m *LimitResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LimitResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LimitResponse proto.InternalMessageInfo
func (m *LimitResponse) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *LimitResponse) GetQueuing() *QueuingConfiguration {
if m != nil {
return m.Queuing
}
return nil
}
// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits.
// It addresses two issues:
// * How are requests for this priority level limited?
// * What should be done with requests that exceed the limit?
type LimitedPriorityLevelConfiguration struct {
// `assuredConcurrencyShares` (ACS) configures the execution
// limit, which is a limit on the number of requests of this
// priority level that may be exeucting at a given time. ACS must
// be a positive number. The server's concurrency limit (SCL) is
// divided among the concurrency-controlled priority levels in
// proportion to their assured concurrency shares. This produces
// the assured concurrency value (ACV) --- the number of requests
// that may be executing at a time --- for each such priority
// level:
//
// ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )
//
// bigger numbers of ACS mean more reserved concurrent requests (at the
// expense of every other PL).
// This field has a default value of 30.
// +optional
AssuredConcurrencyShares *int32 `protobuf:"varint,1,opt,name=assuredConcurrencyShares" json:"assuredConcurrencyShares,omitempty"`
// `limitResponse` indicates what to do with requests that can not be executed right now
LimitResponse *LimitResponse `protobuf:"bytes,2,opt,name=limitResponse" json:"limitResponse,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} }
func (m *LimitedPriorityLevelConfiguration) String() string { return proto.CompactTextString(m) }
func (*LimitedPriorityLevelConfiguration) ProtoMessage() {}
func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{8}
}
func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_LimitedPriorityLevelConfiguration.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) {
xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src)
}
func (m *LimitedPriorityLevelConfiguration) XXX_Size() int {
return m.Size()
}
func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() {
xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m)
}
var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo
func (m *LimitedPriorityLevelConfiguration) GetAssuredConcurrencyShares() int32 {
if m != nil && m.AssuredConcurrencyShares != nil {
return *m.AssuredConcurrencyShares
}
return 0
}
func (m *LimitedPriorityLevelConfiguration) GetLimitResponse() *LimitResponse {
if m != nil {
return m.LimitResponse
}
return nil
}
// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the
// target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member
// of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
type NonResourcePolicyRule struct {
// `verbs` is a list of matching verbs and may not be empty.
// "*" matches all verbs. If it is present, it must be the only entry.
// +listType=set
// Required.
Verbs []string `protobuf:"bytes,1,rep,name=verbs" json:"verbs,omitempty"`
// `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.
// For example:
// - "/healthz" is legal
// - "/hea*" is illegal
// - "/hea" is legal but matches nothing
// - "/hea/*" also matches nothing
// - "/healthz/*" matches all per-component health checks.
// "*" matches all non-resource urls. if it is present, it must be the only entry.
// +listType=set
// Required.
NonResourceURLs []string `protobuf:"bytes,6,rep,name=nonResourceURLs" json:"nonResourceURLs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} }
func (m *NonResourcePolicyRule) String() string { return proto.CompactTextString(m) }
func (*NonResourcePolicyRule) ProtoMessage() {}
func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{9}
}
func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_NonResourcePolicyRule.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) {
xxx_messageInfo_NonResourcePolicyRule.Merge(m, src)
}
func (m *NonResourcePolicyRule) XXX_Size() int {
return m.Size()
}
func (m *NonResourcePolicyRule) XXX_DiscardUnknown() {
xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m)
}
var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo
func (m *NonResourcePolicyRule) GetVerbs() []string {
if m != nil {
return m.Verbs
}
return nil
}
func (m *NonResourcePolicyRule) GetNonResourceURLs() []string {
if m != nil {
return m.NonResourceURLs
}
return nil
}
// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject
// making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches
// a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member
// of resourceRules or nonResourceRules matches the request.
type PolicyRulesWithSubjects struct {
// subjects is the list of normal user, serviceaccount, or group that this rule cares about.
// There must be at least one member in this slice.
// A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request.
// +listType=atomic
// Required.
Subjects []*Subject `protobuf:"bytes,1,rep,name=subjects" json:"subjects,omitempty"`
// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the
// target resource.
// At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
// +listType=atomic
// +optional
ResourceRules []*ResourcePolicyRule `protobuf:"bytes,2,rep,name=resourceRules" json:"resourceRules,omitempty"`
// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
// and the target non-resource URL.
// +listType=atomic
// +optional
NonResourceRules []*NonResourcePolicyRule `protobuf:"bytes,3,rep,name=nonResourceRules" json:"nonResourceRules,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} }
func (m *PolicyRulesWithSubjects) String() string { return proto.CompactTextString(m) }
func (*PolicyRulesWithSubjects) ProtoMessage() {}
func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{10}
}
func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PolicyRulesWithSubjects.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) {
xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src)
}
func (m *PolicyRulesWithSubjects) XXX_Size() int {
return m.Size()
}
func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() {
xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m)
}
var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo
func (m *PolicyRulesWithSubjects) GetSubjects() []*Subject {
if m != nil {
return m.Subjects
}
return nil
}
func (m *PolicyRulesWithSubjects) GetResourceRules() []*ResourcePolicyRule {
if m != nil {
return m.ResourceRules
}
return nil
}
func (m *PolicyRulesWithSubjects) GetNonResourceRules() []*NonResourcePolicyRule {
if m != nil {
return m.NonResourceRules
}
return nil
}
// PriorityLevelConfiguration represents the configuration of a priority level.
type PriorityLevelConfiguration struct {
// `metadata` is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// `spec` is the specification of the desired behavior of a "request-priority".
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec *PriorityLevelConfigurationSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// `status` is the current status of a "request-priority".
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Status *PriorityLevelConfigurationStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} }
func (m *PriorityLevelConfiguration) String() string { return proto.CompactTextString(m) }
func (*PriorityLevelConfiguration) ProtoMessage() {}
func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{11}
}
func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PriorityLevelConfiguration.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) {
xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src)
}
func (m *PriorityLevelConfiguration) XXX_Size() int {
return m.Size()
}
func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() {
xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m)
}
var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo
func (m *PriorityLevelConfiguration) GetMetadata() *v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *PriorityLevelConfiguration) GetSpec() *PriorityLevelConfigurationSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *PriorityLevelConfiguration) GetStatus() *PriorityLevelConfigurationStatus {
if m != nil {
return m.Status
}
return nil
}
// PriorityLevelConfigurationCondition defines the condition of priority level.
type PriorityLevelConfigurationCondition struct {
// `type` is the type of the condition.
// Required.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// `message` is a human-readable message indicating details about last transition.
Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} }
func (m *PriorityLevelConfigurationCondition) String() string { return proto.CompactTextString(m) }
func (*PriorityLevelConfigurationCondition) ProtoMessage() {}
func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{12}
}
func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PriorityLevelConfigurationCondition.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) {
xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src)
}
func (m *PriorityLevelConfigurationCondition) XXX_Size() int {
return m.Size()
}
func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() {
xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m)
}
var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo
func (m *PriorityLevelConfigurationCondition) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *PriorityLevelConfigurationCondition) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *PriorityLevelConfigurationCondition) GetLastTransitionTime() *v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *PriorityLevelConfigurationCondition) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *PriorityLevelConfigurationCondition) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
type PriorityLevelConfigurationList struct {
// `metadata` is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// `items` is a list of request-priorities.
Items []*PriorityLevelConfiguration `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} }
func (m *PriorityLevelConfigurationList) String() string { return proto.CompactTextString(m) }
func (*PriorityLevelConfigurationList) ProtoMessage() {}
func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) {
return fileDescriptor_3a5cb22a034fcb2a, []int{13}
}
func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PriorityLevelConfigurationList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) {
xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src)
}
func (m *PriorityLevelConfigurationList) XXX_Size() int {
return m.Size()
}
func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() {
xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m)
}
var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo
func (m *PriorityLevelConfigurationList) GetMetadata() *v1.ListMeta {
if m != nil {
return m.Metadata
}