This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
/
generated.pb.go
5614 lines (5400 loc) · 139 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.
// source: k8s.io/kubernetes/pkg/api/unversioned/generated.proto
// DO NOT EDIT!
/*
Package unversioned is a generated protocol buffer package.
It is generated from these files:
k8s.io/kubernetes/pkg/api/unversioned/generated.proto
It has these top-level messages:
APIGroup
APIGroupList
APIResource
APIResourceList
APIVersions
Duration
ExportOptions
GroupKind
GroupResource
GroupVersion
GroupVersionForDiscovery
GroupVersionKind
GroupVersionResource
LabelSelector
LabelSelectorRequirement
ListMeta
RootPaths
ServerAddressByClientCIDR
Status
StatusCause
StatusDetails
Time
Timestamp
TypeMeta
*/
package unversioned
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/ericchiang/k8s/runtime"
import _ "github.com/ericchiang/k8s/util/intstr"
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
// APIGroup contains the name, the supported versions, and the preferred version
// of a group.
type APIGroup struct {
// name is the name of the group.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// versions are the versions supported in this group.
Versions []*GroupVersionForDiscovery `protobuf:"bytes,2,rep,name=versions" json:"versions,omitempty"`
// preferredVersion is the version preferred by the API server, which
// probably is the storage version.
// +optional
PreferredVersion *GroupVersionForDiscovery `protobuf:"bytes,3,opt,name=preferredVersion" json:"preferredVersion,omitempty"`
// a map of client CIDR to server address that is serving this group.
// This is to help clients reach servers in the most network-efficient way possible.
// Clients can use the appropriate server address as per the CIDR that they match.
// In case of multiple matches, clients should use the longest matching CIDR.
// The server returns only those CIDRs that it thinks that the client can match.
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []*ServerAddressByClientCIDR `protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs" json:"serverAddressByClientCIDRs,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIGroup) Reset() { *m = APIGroup{} }
func (m *APIGroup) String() string { return proto.CompactTextString(m) }
func (*APIGroup) ProtoMessage() {}
func (*APIGroup) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
func (m *APIGroup) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *APIGroup) GetVersions() []*GroupVersionForDiscovery {
if m != nil {
return m.Versions
}
return nil
}
func (m *APIGroup) GetPreferredVersion() *GroupVersionForDiscovery {
if m != nil {
return m.PreferredVersion
}
return nil
}
func (m *APIGroup) GetServerAddressByClientCIDRs() []*ServerAddressByClientCIDR {
if m != nil {
return m.ServerAddressByClientCIDRs
}
return nil
}
// APIGroupList is a list of APIGroup, to allow clients to discover the API at
// /apis.
type APIGroupList struct {
// groups is a list of APIGroup.
Groups []*APIGroup `protobuf:"bytes,1,rep,name=groups" json:"groups,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIGroupList) Reset() { *m = APIGroupList{} }
func (m *APIGroupList) String() string { return proto.CompactTextString(m) }
func (*APIGroupList) ProtoMessage() {}
func (*APIGroupList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
func (m *APIGroupList) GetGroups() []*APIGroup {
if m != nil {
return m.Groups
}
return nil
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResource struct {
// name is the name of the resource.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// namespaced indicates if a resource is namespaced or not.
Namespaced *bool `protobuf:"varint,2,opt,name=namespaced" json:"namespaced,omitempty"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
Kind *string `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIResource) Reset() { *m = APIResource{} }
func (m *APIResource) String() string { return proto.CompactTextString(m) }
func (*APIResource) ProtoMessage() {}
func (*APIResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
func (m *APIResource) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *APIResource) GetNamespaced() bool {
if m != nil && m.Namespaced != nil {
return *m.Namespaced
}
return false
}
func (m *APIResource) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
// APIResourceList is a list of APIResource, it is used to expose the name of the
// resources supported in a specific group and version, and if the resource
// is namespaced.
type APIResourceList struct {
// groupVersion is the group and version this APIResourceList is for.
GroupVersion *string `protobuf:"bytes,1,opt,name=groupVersion" json:"groupVersion,omitempty"`
// resources contains the name of the resources and if they are namespaced.
Resources []*APIResource `protobuf:"bytes,2,rep,name=resources" json:"resources,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIResourceList) Reset() { *m = APIResourceList{} }
func (m *APIResourceList) String() string { return proto.CompactTextString(m) }
func (*APIResourceList) ProtoMessage() {}
func (*APIResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
func (m *APIResourceList) GetGroupVersion() string {
if m != nil && m.GroupVersion != nil {
return *m.GroupVersion
}
return ""
}
func (m *APIResourceList) GetResources() []*APIResource {
if m != nil {
return m.Resources
}
return nil
}
// APIVersions lists the versions that are available, to allow clients to
// discover the API at /api, which is the root path of the legacy v1 API.
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type APIVersions struct {
// versions are the api versions that are available.
Versions []string `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
// a map of client CIDR to server address that is serving this group.
// This is to help clients reach servers in the most network-efficient way possible.
// Clients can use the appropriate server address as per the CIDR that they match.
// In case of multiple matches, clients should use the longest matching CIDR.
// The server returns only those CIDRs that it thinks that the client can match.
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []*ServerAddressByClientCIDR `protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs" json:"serverAddressByClientCIDRs,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIVersions) Reset() { *m = APIVersions{} }
func (m *APIVersions) String() string { return proto.CompactTextString(m) }
func (*APIVersions) ProtoMessage() {}
func (*APIVersions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
func (m *APIVersions) GetVersions() []string {
if m != nil {
return m.Versions
}
return nil
}
func (m *APIVersions) GetServerAddressByClientCIDRs() []*ServerAddressByClientCIDR {
if m != nil {
return m.ServerAddressByClientCIDRs
}
return nil
}
// Duration is a wrapper around time.Duration which supports correct
// marshaling to YAML and JSON. In particular, it marshals into strings, which
// can be used as map keys in json.
type Duration struct {
Duration *int64 `protobuf:"varint,1,opt,name=duration" json:"duration,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Duration) Reset() { *m = Duration{} }
func (m *Duration) String() string { return proto.CompactTextString(m) }
func (*Duration) ProtoMessage() {}
func (*Duration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
func (m *Duration) GetDuration() int64 {
if m != nil && m.Duration != nil {
return *m.Duration
}
return 0
}
// ExportOptions is the query options to the standard REST get call.
type ExportOptions struct {
// Should this value be exported. Export strips fields that a user can not specify.`
Export *bool `protobuf:"varint,1,opt,name=export" json:"export,omitempty"`
// Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'
Exact *bool `protobuf:"varint,2,opt,name=exact" json:"exact,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ExportOptions) Reset() { *m = ExportOptions{} }
func (m *ExportOptions) String() string { return proto.CompactTextString(m) }
func (*ExportOptions) ProtoMessage() {}
func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
func (m *ExportOptions) GetExport() bool {
if m != nil && m.Export != nil {
return *m.Export
}
return false
}
func (m *ExportOptions) GetExact() bool {
if m != nil && m.Exact != nil {
return *m.Exact
}
return false
}
// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying
// concepts during lookup stages without having partially valid types
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type GroupKind struct {
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Kind *string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupKind) Reset() { *m = GroupKind{} }
func (m *GroupKind) String() string { return proto.CompactTextString(m) }
func (*GroupKind) ProtoMessage() {}
func (*GroupKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
func (m *GroupKind) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *GroupKind) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
// concepts during lookup stages without having partially valid types
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type GroupResource struct {
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Resource *string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupResource) Reset() { *m = GroupResource{} }
func (m *GroupResource) String() string { return proto.CompactTextString(m) }
func (*GroupResource) ProtoMessage() {}
func (*GroupResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
func (m *GroupResource) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *GroupResource) GetResource() string {
if m != nil && m.Resource != nil {
return *m.Resource
}
return ""
}
// GroupVersion contains the "group" and the "version", which uniquely identifies the API.
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type GroupVersion struct {
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupVersion) Reset() { *m = GroupVersion{} }
func (m *GroupVersion) String() string { return proto.CompactTextString(m) }
func (*GroupVersion) ProtoMessage() {}
func (*GroupVersion) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
func (m *GroupVersion) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *GroupVersion) GetVersion() string {
if m != nil && m.Version != nil {
return *m.Version
}
return ""
}
// GroupVersion contains the "group/version" and "version" string of a version.
// It is made a struct to keep extensibility.
type GroupVersionForDiscovery struct {
// groupVersion specifies the API group and version in the form "group/version"
GroupVersion *string `protobuf:"bytes,1,opt,name=groupVersion" json:"groupVersion,omitempty"`
// version specifies the version in the form of "version". This is to save
// the clients the trouble of splitting the GroupVersion.
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupVersionForDiscovery) Reset() { *m = GroupVersionForDiscovery{} }
func (m *GroupVersionForDiscovery) String() string { return proto.CompactTextString(m) }
func (*GroupVersionForDiscovery) ProtoMessage() {}
func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{10}
}
func (m *GroupVersionForDiscovery) GetGroupVersion() string {
if m != nil && m.GroupVersion != nil {
return *m.GroupVersion
}
return ""
}
func (m *GroupVersionForDiscovery) GetVersion() string {
if m != nil && m.Version != nil {
return *m.Version
}
return ""
}
// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type GroupVersionKind struct {
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
Kind *string `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} }
func (m *GroupVersionKind) String() string { return proto.CompactTextString(m) }
func (*GroupVersionKind) ProtoMessage() {}
func (*GroupVersionKind) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
func (m *GroupVersionKind) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *GroupVersionKind) GetVersion() string {
if m != nil && m.Version != nil {
return *m.Version
}
return ""
}
func (m *GroupVersionKind) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
//
// +protobuf.options.(gogoproto.goproto_stringer)=false
type GroupVersionResource struct {
Group *string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
Resource *string `protobuf:"bytes,3,opt,name=resource" json:"resource,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *GroupVersionResource) Reset() { *m = GroupVersionResource{} }
func (m *GroupVersionResource) String() string { return proto.CompactTextString(m) }
func (*GroupVersionResource) ProtoMessage() {}
func (*GroupVersionResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
func (m *GroupVersionResource) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *GroupVersionResource) GetVersion() string {
if m != nil && m.Version != nil {
return *m.Version
}
return ""
}
func (m *GroupVersionResource) GetResource() string {
if m != nil && m.Resource != nil {
return *m.Resource
}
return ""
}
// A label selector is a label query over a set of resources. The result of matchLabels and
// matchExpressions are ANDed. An empty label selector matches all objects. A null
// label selector matches no objects.
type LabelSelector struct {
// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
// map is equivalent to an element of matchExpressions, whose key field is "key", the
// operator is "In", and the values array contains only "value". The requirements are ANDed.
// +optional
MatchLabels map[string]string `protobuf:"bytes,1,rep,name=matchLabels" json:"matchLabels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// matchExpressions is a list of label selector requirements. The requirements are ANDed.
// +optional
MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=matchExpressions" json:"matchExpressions,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LabelSelector) Reset() { *m = LabelSelector{} }
func (m *LabelSelector) String() string { return proto.CompactTextString(m) }
func (*LabelSelector) ProtoMessage() {}
func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
func (m *LabelSelector) GetMatchLabels() map[string]string {
if m != nil {
return m.MatchLabels
}
return nil
}
func (m *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement {
if m != nil {
return m.MatchExpressions
}
return nil
}
// A label selector requirement is a selector that contains values, a key, and an operator that
// relates the key and values.
type LabelSelectorRequirement struct {
// key is the label key that the selector applies to.
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
// operator represents a key's relationship to a set of values.
// Valid operators ard In, NotIn, Exists and DoesNotExist.
Operator *string `protobuf:"bytes,2,opt,name=operator" json:"operator,omitempty"`
// values is an array of string values. If the operator is In or NotIn,
// the values array must be non-empty. If the operator is Exists or DoesNotExist,
// the values array must be empty. This array is replaced during a strategic
// merge patch.
// +optional
Values []string `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} }
func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) }
func (*LabelSelectorRequirement) ProtoMessage() {}
func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{14}
}
func (m *LabelSelectorRequirement) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *LabelSelectorRequirement) GetOperator() string {
if m != nil && m.Operator != nil {
return *m.Operator
}
return ""
}
func (m *LabelSelectorRequirement) GetValues() []string {
if m != nil {
return m.Values
}
return nil
}
// ListMeta describes metadata that synthetic resources must have, including lists and
// various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
type ListMeta struct {
// SelfLink is a URL representing this object.
// Populated by the system.
// Read-only.
// +optional
SelfLink *string `protobuf:"bytes,1,opt,name=selfLink" json:"selfLink,omitempty"`
// String that identifies the server's internal version of this object that
// can be used by clients to determine when objects have changed.
// Value must be treated as opaque by clients and passed unmodified back to the server.
// Populated by the system.
// Read-only.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency
// +optional
ResourceVersion *string `protobuf:"bytes,2,opt,name=resourceVersion" json:"resourceVersion,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ListMeta) Reset() { *m = ListMeta{} }
func (m *ListMeta) String() string { return proto.CompactTextString(m) }
func (*ListMeta) ProtoMessage() {}
func (*ListMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
func (m *ListMeta) GetSelfLink() string {
if m != nil && m.SelfLink != nil {
return *m.SelfLink
}
return ""
}
func (m *ListMeta) GetResourceVersion() string {
if m != nil && m.ResourceVersion != nil {
return *m.ResourceVersion
}
return ""
}
// RootPaths lists the paths available at root.
// For example: "/healthz", "/apis".
type RootPaths struct {
// paths are the paths available at root.
Paths []string `protobuf:"bytes,1,rep,name=paths" json:"paths,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RootPaths) Reset() { *m = RootPaths{} }
func (m *RootPaths) String() string { return proto.CompactTextString(m) }
func (*RootPaths) ProtoMessage() {}
func (*RootPaths) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} }
func (m *RootPaths) GetPaths() []string {
if m != nil {
return m.Paths
}
return nil
}
// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
type ServerAddressByClientCIDR struct {
// The CIDR with which clients can match their IP to figure out the server address that they should use.
ClientCIDR *string `protobuf:"bytes,1,opt,name=clientCIDR" json:"clientCIDR,omitempty"`
// Address of this server, suitable for a client that matches the above CIDR.
// This can be a hostname, hostname:port, IP or IP:port.
ServerAddress *string `protobuf:"bytes,2,opt,name=serverAddress" json:"serverAddress,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} }
func (m *ServerAddressByClientCIDR) String() string { return proto.CompactTextString(m) }
func (*ServerAddressByClientCIDR) ProtoMessage() {}
func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{17}
}
func (m *ServerAddressByClientCIDR) GetClientCIDR() string {
if m != nil && m.ClientCIDR != nil {
return *m.ClientCIDR
}
return ""
}
func (m *ServerAddressByClientCIDR) GetServerAddress() string {
if m != nil && m.ServerAddress != nil {
return *m.ServerAddress
}
return ""
}
// Status is a return value for calls that don't return other objects.
type Status struct {
// Standard list metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
// +optional
Metadata *ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Status of the operation.
// One of: "Success" or "Failure".
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
// +optional
Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
// A human-readable description of the status of this operation.
// +optional
Message *string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
// A machine-readable description of why this operation is in the
// "Failure" status. If this value is empty there
// is no information available. A Reason clarifies an HTTP status
// code but does not override it.
// +optional
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// Extended data associated with the reason. Each reason may define its
// own extended details. This field is optional and the data returned
// is not guaranteed to conform to any schema except that defined by
// the reason type.
// +optional
Details *StatusDetails `protobuf:"bytes,5,opt,name=details" json:"details,omitempty"`
// Suggested HTTP return code for this status, 0 if not set.
// +optional
Code *int32 `protobuf:"varint,6,opt,name=code" json:"code,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Status) Reset() { *m = Status{} }
func (m *Status) String() string { return proto.CompactTextString(m) }
func (*Status) ProtoMessage() {}
func (*Status) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} }
func (m *Status) GetMetadata() *ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Status) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *Status) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
func (m *Status) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *Status) GetDetails() *StatusDetails {
if m != nil {
return m.Details
}
return nil
}
func (m *Status) GetCode() int32 {
if m != nil && m.Code != nil {
return *m.Code
}
return 0
}
// StatusCause provides more information about an api.Status failure, including
// cases when multiple errors are encountered.
type StatusCause struct {
// A machine-readable description of the cause of the error. If this value is
// empty there is no information available.
// +optional
Reason *string `protobuf:"bytes,1,opt,name=reason" json:"reason,omitempty"`
// A human-readable description of the cause of the error. This field may be
// presented as-is to a reader.
// +optional
Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
// The field of the resource that has caused this error, as named by its JSON
// serialization. May include dot and postfix notation for nested attributes.
// Arrays are zero-indexed. Fields may appear more than once in an array of
// causes due to fields having multiple errors.
// Optional.
//
// Examples:
// "name" - the field "name" on the current resource
// "items[0].name" - the field "name" on the first array entry in "items"
// +optional
Field *string `protobuf:"bytes,3,opt,name=field" json:"field,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatusCause) Reset() { *m = StatusCause{} }
func (m *StatusCause) String() string { return proto.CompactTextString(m) }
func (*StatusCause) ProtoMessage() {}
func (*StatusCause) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} }
func (m *StatusCause) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *StatusCause) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
func (m *StatusCause) GetField() string {
if m != nil && m.Field != nil {
return *m.Field
}
return ""
}
// StatusDetails is a set of additional properties that MAY be set by the
// server to provide additional information about a response. The Reason
// field of a Status object defines what attributes will be set. Clients
// must ignore fields that do not match the defined type of each attribute,
// and should assume that any attribute may be empty, invalid, or under
// defined.
type StatusDetails struct {
// The name attribute of the resource associated with the status StatusReason
// (when there is a single name which can be described).
// +optional
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The group attribute of the resource associated with the status StatusReason.
// +optional
Group *string `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"`
// The kind attribute of the resource associated with the status StatusReason.
// On some operations may differ from the requested resource Kind.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
// +optional
Kind *string `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"`
// The Causes array includes more details associated with the StatusReason
// failure. Not all StatusReasons may provide detailed causes.
// +optional
Causes []*StatusCause `protobuf:"bytes,4,rep,name=causes" json:"causes,omitempty"`
// If specified, the time in seconds before the operation should be retried.
// +optional
RetryAfterSeconds *int32 `protobuf:"varint,5,opt,name=retryAfterSeconds" json:"retryAfterSeconds,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatusDetails) Reset() { *m = StatusDetails{} }
func (m *StatusDetails) String() string { return proto.CompactTextString(m) }
func (*StatusDetails) ProtoMessage() {}
func (*StatusDetails) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} }
func (m *StatusDetails) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *StatusDetails) GetGroup() string {
if m != nil && m.Group != nil {
return *m.Group
}
return ""
}
func (m *StatusDetails) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
func (m *StatusDetails) GetCauses() []*StatusCause {
if m != nil {
return m.Causes
}
return nil
}
func (m *StatusDetails) GetRetryAfterSeconds() int32 {
if m != nil && m.RetryAfterSeconds != nil {
return *m.RetryAfterSeconds
}
return 0
}
// Time is a wrapper around time.Time which supports correct
// marshaling to YAML and JSON. Wrappers are provided for many
// of the factory methods that the time package offers.
//
// +protobuf.options.marshal=false
// +protobuf.as=Timestamp
// +protobuf.options.(gogoproto.goproto_stringer)=false
type Time struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds *int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive. This field may be limited in precision depending on context.
Nanos *int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Time) Reset() { *m = Time{} }
func (m *Time) String() string { return proto.CompactTextString(m) }
func (*Time) ProtoMessage() {}
func (*Time) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} }
func (m *Time) GetSeconds() int64 {
if m != nil && m.Seconds != nil {
return *m.Seconds
}
return 0
}
func (m *Time) GetNanos() int32 {
if m != nil && m.Nanos != nil {
return *m.Nanos
}
return 0
}
// Timestamp is a struct that is equivalent to Time, but intended for
// protobuf marshalling/unmarshalling. It is generated into a serialization
// that matches Time. Do not use in Go structs.
type Timestamp struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds *int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive. This field may be limited in precision depending on context.
Nanos *int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Timestamp) Reset() { *m = Timestamp{} }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
func (*Timestamp) ProtoMessage() {}
func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} }
func (m *Timestamp) GetSeconds() int64 {
if m != nil && m.Seconds != nil {
return *m.Seconds
}
return 0
}
func (m *Timestamp) GetNanos() int32 {
if m != nil && m.Nanos != nil {
return *m.Nanos
}
return 0
}
// TypeMeta describes an individual object in an API response or request
// with strings representing the type of the object and its API schema version.
// Structures that are versioned or persisted should inline TypeMeta.
type TypeMeta struct {
// Kind is a string value representing the REST resource this object represents.
// Servers may infer this from the endpoint the client submits requests to.
// Cannot be updated.
// In CamelCase.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
// +optional
Kind *string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"`
// APIVersion defines the versioned schema of this representation of an object.
// Servers should convert recognized schemas to the latest internal value, and
// may reject unrecognized values.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources
// +optional
ApiVersion *string `protobuf:"bytes,2,opt,name=apiVersion" json:"apiVersion,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *TypeMeta) Reset() { *m = TypeMeta{} }
func (m *TypeMeta) String() string { return proto.CompactTextString(m) }
func (*TypeMeta) ProtoMessage() {}
func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} }
func (m *TypeMeta) GetKind() string {
if m != nil && m.Kind != nil {
return *m.Kind
}
return ""
}
func (m *TypeMeta) GetApiVersion() string {
if m != nil && m.ApiVersion != nil {
return *m.ApiVersion
}
return ""
}
func init() {
proto.RegisterType((*APIGroup)(nil), "github.com/ericchiang.k8s.api.unversioned.APIGroup")
proto.RegisterType((*APIGroupList)(nil), "github.com/ericchiang.k8s.api.unversioned.APIGroupList")
proto.RegisterType((*APIResource)(nil), "github.com/ericchiang.k8s.api.unversioned.APIResource")
proto.RegisterType((*APIResourceList)(nil), "github.com/ericchiang.k8s.api.unversioned.APIResourceList")
proto.RegisterType((*APIVersions)(nil), "github.com/ericchiang.k8s.api.unversioned.APIVersions")
proto.RegisterType((*Duration)(nil), "github.com/ericchiang.k8s.api.unversioned.Duration")
proto.RegisterType((*ExportOptions)(nil), "github.com/ericchiang.k8s.api.unversioned.ExportOptions")
proto.RegisterType((*GroupKind)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupKind")
proto.RegisterType((*GroupResource)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupResource")
proto.RegisterType((*GroupVersion)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupVersion")
proto.RegisterType((*GroupVersionForDiscovery)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupVersionForDiscovery")
proto.RegisterType((*GroupVersionKind)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupVersionKind")
proto.RegisterType((*GroupVersionResource)(nil), "github.com/ericchiang.k8s.api.unversioned.GroupVersionResource")
proto.RegisterType((*LabelSelector)(nil), "github.com/ericchiang.k8s.api.unversioned.LabelSelector")
proto.RegisterType((*LabelSelectorRequirement)(nil), "github.com/ericchiang.k8s.api.unversioned.LabelSelectorRequirement")
proto.RegisterType((*ListMeta)(nil), "github.com/ericchiang.k8s.api.unversioned.ListMeta")
proto.RegisterType((*RootPaths)(nil), "github.com/ericchiang.k8s.api.unversioned.RootPaths")
proto.RegisterType((*ServerAddressByClientCIDR)(nil), "github.com/ericchiang.k8s.api.unversioned.ServerAddressByClientCIDR")
proto.RegisterType((*Status)(nil), "github.com/ericchiang.k8s.api.unversioned.Status")
proto.RegisterType((*StatusCause)(nil), "github.com/ericchiang.k8s.api.unversioned.StatusCause")
proto.RegisterType((*StatusDetails)(nil), "github.com/ericchiang.k8s.api.unversioned.StatusDetails")
proto.RegisterType((*Time)(nil), "github.com/ericchiang.k8s.api.unversioned.Time")
proto.RegisterType((*Timestamp)(nil), "github.com/ericchiang.k8s.api.unversioned.Timestamp")
proto.RegisterType((*TypeMeta)(nil), "github.com/ericchiang.k8s.api.unversioned.TypeMeta")
}
func (m *APIGroup) 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 *APIGroup) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Name != nil {
dAtA[i] = 0xa
i++