forked from ericchiang/k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generated.pb.go
6082 lines (5899 loc) · 153 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/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto
/*
Package v1beta1 is a generated protocol buffer package.
It is generated from these files:
k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto
It has these top-level messages:
CustomResourceDefinition
CustomResourceDefinitionCondition
CustomResourceDefinitionList
CustomResourceDefinitionNames
CustomResourceDefinitionSpec
CustomResourceDefinitionStatus
CustomResourceSubresourceScale
CustomResourceSubresourceStatus
CustomResourceSubresources
CustomResourceValidation
ExternalDocumentation
JSON
JSONSchemaProps
JSONSchemaPropsOrArray
JSONSchemaPropsOrBool
JSONSchemaPropsOrStringArray
*/
package v1beta1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import k8s_io_apimachinery_pkg_apis_meta_v1 "github.com/ericchiang/k8s/apis/meta/v1"
import _ "github.com/ericchiang/k8s/runtime"
import _ "github.com/ericchiang/k8s/runtime/schema"
import _ "github.com/ericchiang/k8s/util/intstr"
import encoding_binary "encoding/binary"
import io "io"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format
// <.spec.name>.<.spec.group>.
type CustomResourceDefinition struct {
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Spec describes how the user wants the resources to appear
Spec *CustomResourceDefinitionSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// Status indicates the actual state of the CustomResourceDefinition
Status *CustomResourceDefinitionStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinition) Reset() { *m = CustomResourceDefinition{} }
func (m *CustomResourceDefinition) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinition) ProtoMessage() {}
func (*CustomResourceDefinition) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{0}
}
func (m *CustomResourceDefinition) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *CustomResourceDefinition) GetSpec() *CustomResourceDefinitionSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *CustomResourceDefinition) GetStatus() *CustomResourceDefinitionStatus {
if m != nil {
return m.Status
}
return nil
}
// CustomResourceDefinitionCondition contains details for the current condition of this pod.
type CustomResourceDefinitionCondition struct {
// Type is the type of the condition.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// Status is the status of the condition.
// Can be True, False, Unknown.
Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
// Last time the condition transitioned from one status to another.
// +optional
LastTransitionTime *k8s_io_apimachinery_pkg_apis_meta_v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// Unique, one-word, CamelCase reason for the condition's last transition.
// +optional
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// Human-readable message indicating details about last transition.
// +optional
Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinitionCondition) Reset() { *m = CustomResourceDefinitionCondition{} }
func (m *CustomResourceDefinitionCondition) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinitionCondition) ProtoMessage() {}
func (*CustomResourceDefinitionCondition) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{1}
}
func (m *CustomResourceDefinitionCondition) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *CustomResourceDefinitionCondition) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *CustomResourceDefinitionCondition) GetLastTransitionTime() *k8s_io_apimachinery_pkg_apis_meta_v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *CustomResourceDefinitionCondition) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *CustomResourceDefinitionCondition) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
type CustomResourceDefinitionList struct {
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Items individual CustomResourceDefinitions
Items []*CustomResourceDefinition `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinitionList) Reset() { *m = CustomResourceDefinitionList{} }
func (m *CustomResourceDefinitionList) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinitionList) ProtoMessage() {}
func (*CustomResourceDefinitionList) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{2}
}
func (m *CustomResourceDefinitionList) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *CustomResourceDefinitionList) GetItems() []*CustomResourceDefinition {
if m != nil {
return m.Items
}
return nil
}
// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
type CustomResourceDefinitionNames struct {
// Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration
// too: plural.group and it must be all lowercase.
Plural *string `protobuf:"bytes,1,opt,name=plural" json:"plural,omitempty"`
// Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased <kind>
Singular *string `protobuf:"bytes,2,opt,name=singular" json:"singular,omitempty"`
// ShortNames are short names for the resource. It must be all lowercase.
ShortNames []string `protobuf:"bytes,3,rep,name=shortNames" json:"shortNames,omitempty"`
// Kind is the serialized kind of the resource. It is normally CamelCase and singular.
Kind *string `protobuf:"bytes,4,opt,name=kind" json:"kind,omitempty"`
// ListKind is the serialized kind of the list for this resource. Defaults to <kind>List.
ListKind *string `protobuf:"bytes,5,opt,name=listKind" json:"listKind,omitempty"`
// Categories is a list of grouped resources custom resources belong to (e.g. 'all')
// +optional
Categories []string `protobuf:"bytes,6,rep,name=categories" json:"categories,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinitionNames) Reset() { *m = CustomResourceDefinitionNames{} }
func (m *CustomResourceDefinitionNames) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinitionNames) ProtoMessage() {}
func (*CustomResourceDefinitionNames) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{3}
}
func (m *CustomResourceDefinitionNames) GetPlural() string {
if m != nil && m.Plural != nil {
return *m.Plural
}
return ""
}
func (m *CustomResourceDefinitionNames) GetSingular() string {
if m != nil && m.Singular != nil {
return *m.Singular
}
return ""
}
func (m *CustomResourceDefinitionNames) GetShortNames() []string {
if m != nil {
return m.ShortNames
}
return nil
}
func (m *CustomResourceDefinitionNames) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
func (m *CustomResourceDefinitionNames) GetListKind() string {
if m != nil && m.ListKind != nil {
return *m.ListKind
}
return ""
}
func (m *CustomResourceDefinitionNames) GetCategories() []string {
if m != nil {
return m.Categories
}
return nil
}
// CustomResourceDefinitionSpec describes how a user wants their resource to appear
type CustomResourceDefinitionSpec struct {
// Group is the group this resource belongs in
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
// Version is the version this resource belongs in
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
// Names are the names used to describe this custom resource
Names *CustomResourceDefinitionNames `protobuf:"bytes,3,opt,name=names" json:"names,omitempty"`
// Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced
Scope *string `protobuf:"bytes,4,opt,name=scope" json:"scope,omitempty"`
// Validation describes the validation methods for CustomResources
// +optional
Validation *CustomResourceValidation `protobuf:"bytes,5,opt,name=validation" json:"validation,omitempty"`
// Subresources describes the subresources for CustomResources
// This field is alpha-level and should only be sent to servers that enable
// subresources via the CustomResourceSubresources feature gate.
// +optional
Subresources *CustomResourceSubresources `protobuf:"bytes,6,opt,name=subresources" json:"subresources,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinitionSpec) Reset() { *m = CustomResourceDefinitionSpec{} }
func (m *CustomResourceDefinitionSpec) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinitionSpec) ProtoMessage() {}
func (*CustomResourceDefinitionSpec) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{4}
}
func (m *CustomResourceDefinitionSpec) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *CustomResourceDefinitionSpec) GetVersion() string {
if m != nil && m.Version != nil {
return *m.Version
}
return ""
}
func (m *CustomResourceDefinitionSpec) GetNames() *CustomResourceDefinitionNames {
if m != nil {
return m.Names
}
return nil
}
func (m *CustomResourceDefinitionSpec) GetScope() string {
if m != nil && m.Scope != nil {
return *m.Scope
}
return ""
}
func (m *CustomResourceDefinitionSpec) GetValidation() *CustomResourceValidation {
if m != nil {
return m.Validation
}
return nil
}
func (m *CustomResourceDefinitionSpec) GetSubresources() *CustomResourceSubresources {
if m != nil {
return m.Subresources
}
return nil
}
// CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
type CustomResourceDefinitionStatus struct {
// Conditions indicate state for particular aspects of a CustomResourceDefinition
Conditions []*CustomResourceDefinitionCondition `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"`
// AcceptedNames are the names that are actually being used to serve discovery
// They may be different than the names in spec.
AcceptedNames *CustomResourceDefinitionNames `protobuf:"bytes,2,opt,name=acceptedNames" json:"acceptedNames,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceDefinitionStatus) Reset() { *m = CustomResourceDefinitionStatus{} }
func (m *CustomResourceDefinitionStatus) String() string { return proto.CompactTextString(m) }
func (*CustomResourceDefinitionStatus) ProtoMessage() {}
func (*CustomResourceDefinitionStatus) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{5}
}
func (m *CustomResourceDefinitionStatus) GetConditions() []*CustomResourceDefinitionCondition {
if m != nil {
return m.Conditions
}
return nil
}
func (m *CustomResourceDefinitionStatus) GetAcceptedNames() *CustomResourceDefinitionNames {
if m != nil {
return m.AcceptedNames
}
return nil
}
// CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
type CustomResourceSubresourceScale struct {
// SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
// Only JSON paths without the array notation are allowed.
// Must be a JSON Path under .spec.
// If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
SpecReplicasPath *string `protobuf:"bytes,1,opt,name=specReplicasPath" json:"specReplicasPath,omitempty"`
// StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
// Only JSON paths without the array notation are allowed.
// Must be a JSON Path under .status.
// If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource
// will default to 0.
StatusReplicasPath *string `protobuf:"bytes,2,opt,name=statusReplicasPath" json:"statusReplicasPath,omitempty"`
// LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
// Only JSON paths without the array notation are allowed.
// Must be a JSON Path under .status.
// Must be set to work with HPA.
// If there is no value under the given path in the CustomResource, the status label selector value in the /scale
// subresource will default to the empty string.
// +optional
LabelSelectorPath *string `protobuf:"bytes,3,opt,name=labelSelectorPath" json:"labelSelectorPath,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceSubresourceScale) Reset() { *m = CustomResourceSubresourceScale{} }
func (m *CustomResourceSubresourceScale) String() string { return proto.CompactTextString(m) }
func (*CustomResourceSubresourceScale) ProtoMessage() {}
func (*CustomResourceSubresourceScale) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{6}
}
func (m *CustomResourceSubresourceScale) GetSpecReplicasPath() string {
if m != nil && m.SpecReplicasPath != nil {
return *m.SpecReplicasPath
}
return ""
}
func (m *CustomResourceSubresourceScale) GetStatusReplicasPath() string {
if m != nil && m.StatusReplicasPath != nil {
return *m.StatusReplicasPath
}
return ""
}
func (m *CustomResourceSubresourceScale) GetLabelSelectorPath() string {
if m != nil && m.LabelSelectorPath != nil {
return *m.LabelSelectorPath
}
return ""
}
// CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources.
// Status is represented by the `.status` JSON path inside of a CustomResource. When set,
// * exposes a /status subresource for the custom resource
// * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza
// * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza
type CustomResourceSubresourceStatus struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceSubresourceStatus) Reset() { *m = CustomResourceSubresourceStatus{} }
func (m *CustomResourceSubresourceStatus) String() string { return proto.CompactTextString(m) }
func (*CustomResourceSubresourceStatus) ProtoMessage() {}
func (*CustomResourceSubresourceStatus) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{7}
}
// CustomResourceSubresources defines the status and scale subresources for CustomResources.
type CustomResourceSubresources struct {
// Status denotes the status subresource for CustomResources
Status *CustomResourceSubresourceStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
// Scale denotes the scale subresource for CustomResources
Scale *CustomResourceSubresourceScale `protobuf:"bytes,2,opt,name=scale" json:"scale,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceSubresources) Reset() { *m = CustomResourceSubresources{} }
func (m *CustomResourceSubresources) String() string { return proto.CompactTextString(m) }
func (*CustomResourceSubresources) ProtoMessage() {}
func (*CustomResourceSubresources) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{8}
}
func (m *CustomResourceSubresources) GetStatus() *CustomResourceSubresourceStatus {
if m != nil {
return m.Status
}
return nil
}
func (m *CustomResourceSubresources) GetScale() *CustomResourceSubresourceScale {
if m != nil {
return m.Scale
}
return nil
}
// CustomResourceValidation is a list of validation methods for CustomResources.
type CustomResourceValidation struct {
// OpenAPIV3Schema is the OpenAPI v3 schema to be validated against.
OpenAPIV3Schema *JSONSchemaProps `protobuf:"bytes,1,opt,name=openAPIV3Schema" json:"openAPIV3Schema,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomResourceValidation) Reset() { *m = CustomResourceValidation{} }
func (m *CustomResourceValidation) String() string { return proto.CompactTextString(m) }
func (*CustomResourceValidation) ProtoMessage() {}
func (*CustomResourceValidation) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{9}
}
func (m *CustomResourceValidation) GetOpenAPIV3Schema() *JSONSchemaProps {
if m != nil {
return m.OpenAPIV3Schema
}
return nil
}
// ExternalDocumentation allows referencing an external resource for extended documentation.
type ExternalDocumentation struct {
Description *string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
Url *string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ExternalDocumentation) Reset() { *m = ExternalDocumentation{} }
func (m *ExternalDocumentation) String() string { return proto.CompactTextString(m) }
func (*ExternalDocumentation) ProtoMessage() {}
func (*ExternalDocumentation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
func (m *ExternalDocumentation) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
func (m *ExternalDocumentation) GetUrl() string {
if m != nil && m.Url != nil {
return *m.Url
}
return ""
}
// JSON represents any valid JSON value.
// These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
type JSON struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw" json:"raw,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *JSON) Reset() { *m = JSON{} }
func (m *JSON) String() string { return proto.CompactTextString(m) }
func (*JSON) ProtoMessage() {}
func (*JSON) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
func (m *JSON) GetRaw() []byte {
if m != nil {
return m.Raw
}
return nil
}
// JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
type JSONSchemaProps struct {
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Schema *string `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"`
Ref *string `protobuf:"bytes,3,opt,name=ref" json:"ref,omitempty"`
Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
Type *string `protobuf:"bytes,5,opt,name=type" json:"type,omitempty"`
Format *string `protobuf:"bytes,6,opt,name=format" json:"format,omitempty"`
Title *string `protobuf:"bytes,7,opt,name=title" json:"title,omitempty"`
Default *JSON `protobuf:"bytes,8,opt,name=default" json:"default,omitempty"`
Maximum *float64 `protobuf:"fixed64,9,opt,name=maximum" json:"maximum,omitempty"`
ExclusiveMaximum *bool `protobuf:"varint,10,opt,name=exclusiveMaximum" json:"exclusiveMaximum,omitempty"`
Minimum *float64 `protobuf:"fixed64,11,opt,name=minimum" json:"minimum,omitempty"`
ExclusiveMinimum *bool `protobuf:"varint,12,opt,name=exclusiveMinimum" json:"exclusiveMinimum,omitempty"`
MaxLength *int64 `protobuf:"varint,13,opt,name=maxLength" json:"maxLength,omitempty"`
MinLength *int64 `protobuf:"varint,14,opt,name=minLength" json:"minLength,omitempty"`
Pattern *string `protobuf:"bytes,15,opt,name=pattern" json:"pattern,omitempty"`
MaxItems *int64 `protobuf:"varint,16,opt,name=maxItems" json:"maxItems,omitempty"`
MinItems *int64 `protobuf:"varint,17,opt,name=minItems" json:"minItems,omitempty"`
UniqueItems *bool `protobuf:"varint,18,opt,name=uniqueItems" json:"uniqueItems,omitempty"`
MultipleOf *float64 `protobuf:"fixed64,19,opt,name=multipleOf" json:"multipleOf,omitempty"`
Enum []*JSON `protobuf:"bytes,20,rep,name=enum" json:"enum,omitempty"`
MaxProperties *int64 `protobuf:"varint,21,opt,name=maxProperties" json:"maxProperties,omitempty"`
MinProperties *int64 `protobuf:"varint,22,opt,name=minProperties" json:"minProperties,omitempty"`
Required []string `protobuf:"bytes,23,rep,name=required" json:"required,omitempty"`
Items *JSONSchemaPropsOrArray `protobuf:"bytes,24,opt,name=items" json:"items,omitempty"`
AllOf []*JSONSchemaProps `protobuf:"bytes,25,rep,name=allOf" json:"allOf,omitempty"`
OneOf []*JSONSchemaProps `protobuf:"bytes,26,rep,name=oneOf" json:"oneOf,omitempty"`
AnyOf []*JSONSchemaProps `protobuf:"bytes,27,rep,name=anyOf" json:"anyOf,omitempty"`
Not *JSONSchemaProps `protobuf:"bytes,28,opt,name=not" json:"not,omitempty"`
Properties map[string]*JSONSchemaProps `protobuf:"bytes,29,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
AdditionalProperties *JSONSchemaPropsOrBool `protobuf:"bytes,30,opt,name=additionalProperties" json:"additionalProperties,omitempty"`
PatternProperties map[string]*JSONSchemaProps `protobuf:"bytes,31,rep,name=patternProperties" json:"patternProperties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Dependencies map[string]*JSONSchemaPropsOrStringArray `protobuf:"bytes,32,rep,name=dependencies" json:"dependencies,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
AdditionalItems *JSONSchemaPropsOrBool `protobuf:"bytes,33,opt,name=additionalItems" json:"additionalItems,omitempty"`
Definitions map[string]*JSONSchemaProps `protobuf:"bytes,34,rep,name=definitions" json:"definitions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
ExternalDocs *ExternalDocumentation `protobuf:"bytes,35,opt,name=externalDocs" json:"externalDocs,omitempty"`
Example *JSON `protobuf:"bytes,36,opt,name=example" json:"example,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *JSONSchemaProps) Reset() { *m = JSONSchemaProps{} }
func (m *JSONSchemaProps) String() string { return proto.CompactTextString(m) }
func (*JSONSchemaProps) ProtoMessage() {}
func (*JSONSchemaProps) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
func (m *JSONSchemaProps) GetId() string {
if m != nil && m.Id != nil {
return *m.Id
}
return ""
}
func (m *JSONSchemaProps) GetSchema() string {
if m != nil && m.Schema != nil {
return *m.Schema
}
return ""
}
func (m *JSONSchemaProps) GetRef() string {
if m != nil && m.Ref != nil {
return *m.Ref
}
return ""
}
func (m *JSONSchemaProps) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
func (m *JSONSchemaProps) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *JSONSchemaProps) GetFormat() string {
if m != nil && m.Format != nil {
return *m.Format
}
return ""
}
func (m *JSONSchemaProps) GetTitle() string {
if m != nil && m.Title != nil {
return *m.Title
}
return ""
}
func (m *JSONSchemaProps) GetDefault() *JSON {
if m != nil {
return m.Default
}
return nil
}
func (m *JSONSchemaProps) GetMaximum() float64 {
if m != nil && m.Maximum != nil {
return *m.Maximum
}
return 0
}
func (m *JSONSchemaProps) GetExclusiveMaximum() bool {
if m != nil && m.ExclusiveMaximum != nil {
return *m.ExclusiveMaximum
}
return false
}
func (m *JSONSchemaProps) GetMinimum() float64 {
if m != nil && m.Minimum != nil {
return *m.Minimum
}
return 0
}
func (m *JSONSchemaProps) GetExclusiveMinimum() bool {
if m != nil && m.ExclusiveMinimum != nil {
return *m.ExclusiveMinimum
}
return false
}
func (m *JSONSchemaProps) GetMaxLength() int64 {
if m != nil && m.MaxLength != nil {
return *m.MaxLength
}
return 0
}
func (m *JSONSchemaProps) GetMinLength() int64 {
if m != nil && m.MinLength != nil {
return *m.MinLength
}
return 0
}
func (m *JSONSchemaProps) GetPattern() string {
if m != nil && m.Pattern != nil {
return *m.Pattern
}
return ""
}
func (m *JSONSchemaProps) GetMaxItems() int64 {
if m != nil && m.MaxItems != nil {
return *m.MaxItems
}
return 0
}
func (m *JSONSchemaProps) GetMinItems() int64 {
if m != nil && m.MinItems != nil {
return *m.MinItems
}
return 0
}
func (m *JSONSchemaProps) GetUniqueItems() bool {
if m != nil && m.UniqueItems != nil {
return *m.UniqueItems
}
return false
}
func (m *JSONSchemaProps) GetMultipleOf() float64 {
if m != nil && m.MultipleOf != nil {
return *m.MultipleOf
}
return 0
}
func (m *JSONSchemaProps) GetEnum() []*JSON {
if m != nil {
return m.Enum
}
return nil
}
func (m *JSONSchemaProps) GetMaxProperties() int64 {
if m != nil && m.MaxProperties != nil {
return *m.MaxProperties
}
return 0
}
func (m *JSONSchemaProps) GetMinProperties() int64 {
if m != nil && m.MinProperties != nil {
return *m.MinProperties
}
return 0
}
func (m *JSONSchemaProps) GetRequired() []string {
if m != nil {
return m.Required
}
return nil
}
func (m *JSONSchemaProps) GetItems() *JSONSchemaPropsOrArray {
if m != nil {
return m.Items
}
return nil
}
func (m *JSONSchemaProps) GetAllOf() []*JSONSchemaProps {
if m != nil {
return m.AllOf
}
return nil
}
func (m *JSONSchemaProps) GetOneOf() []*JSONSchemaProps {
if m != nil {
return m.OneOf
}
return nil
}
func (m *JSONSchemaProps) GetAnyOf() []*JSONSchemaProps {
if m != nil {
return m.AnyOf
}
return nil
}
func (m *JSONSchemaProps) GetNot() *JSONSchemaProps {
if m != nil {
return m.Not
}
return nil
}
func (m *JSONSchemaProps) GetProperties() map[string]*JSONSchemaProps {
if m != nil {
return m.Properties
}
return nil
}
func (m *JSONSchemaProps) GetAdditionalProperties() *JSONSchemaPropsOrBool {
if m != nil {
return m.AdditionalProperties
}
return nil
}
func (m *JSONSchemaProps) GetPatternProperties() map[string]*JSONSchemaProps {
if m != nil {
return m.PatternProperties
}
return nil
}
func (m *JSONSchemaProps) GetDependencies() map[string]*JSONSchemaPropsOrStringArray {
if m != nil {
return m.Dependencies
}
return nil
}
func (m *JSONSchemaProps) GetAdditionalItems() *JSONSchemaPropsOrBool {
if m != nil {
return m.AdditionalItems
}
return nil
}
func (m *JSONSchemaProps) GetDefinitions() map[string]*JSONSchemaProps {
if m != nil {
return m.Definitions
}
return nil
}
func (m *JSONSchemaProps) GetExternalDocs() *ExternalDocumentation {
if m != nil {
return m.ExternalDocs
}
return nil
}
func (m *JSONSchemaProps) GetExample() *JSON {
if m != nil {
return m.Example
}
return nil
}
// JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps
// or an array of JSONSchemaProps. Mainly here for serialization purposes.
type JSONSchemaPropsOrArray struct {
Schema *JSONSchemaProps `protobuf:"bytes,1,opt,name=schema" json:"schema,omitempty"`
JSONSchemas []*JSONSchemaProps `protobuf:"bytes,2,rep,name=jSONSchemas" json:"jSONSchemas,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *JSONSchemaPropsOrArray) Reset() { *m = JSONSchemaPropsOrArray{} }
func (m *JSONSchemaPropsOrArray) String() string { return proto.CompactTextString(m) }
func (*JSONSchemaPropsOrArray) ProtoMessage() {}
func (*JSONSchemaPropsOrArray) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
func (m *JSONSchemaPropsOrArray) GetSchema() *JSONSchemaProps {
if m != nil {
return m.Schema
}
return nil
}
func (m *JSONSchemaPropsOrArray) GetJSONSchemas() []*JSONSchemaProps {
if m != nil {
return m.JSONSchemas
}
return nil
}
// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
// Defaults to true for the boolean property.
type JSONSchemaPropsOrBool struct {
Allows *bool `protobuf:"varint,1,opt,name=allows" json:"allows,omitempty"`
Schema *JSONSchemaProps `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *JSONSchemaPropsOrBool) Reset() { *m = JSONSchemaPropsOrBool{} }
func (m *JSONSchemaPropsOrBool) String() string { return proto.CompactTextString(m) }
func (*JSONSchemaPropsOrBool) ProtoMessage() {}
func (*JSONSchemaPropsOrBool) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
func (m *JSONSchemaPropsOrBool) GetAllows() bool {
if m != nil && m.Allows != nil {
return *m.Allows
}
return false
}
func (m *JSONSchemaPropsOrBool) GetSchema() *JSONSchemaProps {
if m != nil {
return m.Schema
}
return nil
}
// JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
type JSONSchemaPropsOrStringArray struct {
Schema *JSONSchemaProps `protobuf:"bytes,1,opt,name=schema" json:"schema,omitempty"`
Property []string `protobuf:"bytes,2,rep,name=property" json:"property,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *JSONSchemaPropsOrStringArray) Reset() { *m = JSONSchemaPropsOrStringArray{} }
func (m *JSONSchemaPropsOrStringArray) String() string { return proto.CompactTextString(m) }
func (*JSONSchemaPropsOrStringArray) ProtoMessage() {}
func (*JSONSchemaPropsOrStringArray) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{15}
}
func (m *JSONSchemaPropsOrStringArray) GetSchema() *JSONSchemaProps {
if m != nil {
return m.Schema
}
return nil
}
func (m *JSONSchemaPropsOrStringArray) GetProperty() []string {
if m != nil {
return m.Property
}
return nil
}
func init() {
proto.RegisterType((*CustomResourceDefinition)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition")
proto.RegisterType((*CustomResourceDefinitionCondition)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition")
proto.RegisterType((*CustomResourceDefinitionList)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList")
proto.RegisterType((*CustomResourceDefinitionNames)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames")
proto.RegisterType((*CustomResourceDefinitionSpec)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec")
proto.RegisterType((*CustomResourceDefinitionStatus)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus")
proto.RegisterType((*CustomResourceSubresourceScale)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale")
proto.RegisterType((*CustomResourceSubresourceStatus)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus")
proto.RegisterType((*CustomResourceSubresources)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources")
proto.RegisterType((*CustomResourceValidation)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation")
proto.RegisterType((*ExternalDocumentation)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation")
proto.RegisterType((*JSON)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON")
proto.RegisterType((*JSONSchemaProps)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps")
proto.RegisterType((*JSONSchemaPropsOrArray)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray")
proto.RegisterType((*JSONSchemaPropsOrBool)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool")
proto.RegisterType((*JSONSchemaPropsOrStringArray)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray")
}
func (m *CustomResourceDefinition) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CustomResourceDefinition) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Metadata != nil {
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Metadata.Size()))
n1, err := m.Metadata.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
}
if m.Spec != nil {
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
n2, err := m.Spec.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.Status != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
n3, err := m.Status.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *CustomResourceDefinitionCondition) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CustomResourceDefinitionCondition) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Type != nil {
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Type)))
i += copy(dAtA[i:], *m.Type)
}
if m.Status != nil {
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Status)))
i += copy(dAtA[i:], *m.Status)
}
if m.LastTransitionTime != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size()))
n4, err := m.LastTransitionTime.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}