-
Notifications
You must be signed in to change notification settings - Fork 39.3k
/
csi.pb.go
5007 lines (4572 loc) · 208 KB
/
csi.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
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// For backwards compatibility with CSI 0.x we carry a copy of the
// CSI 0.3 client.
package csiv0
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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
type PluginCapability_Service_Type int32
const (
PluginCapability_Service_UNKNOWN PluginCapability_Service_Type = 0
// CONTROLLER_SERVICE indicates that the Plugin provides RPCs for
// the ControllerService. Plugins SHOULD provide this capability.
// In rare cases certain plugins may wish to omit the
// ControllerService entirely from their implementation, but such
// SHOULD NOT be the common case.
// The presence of this capability determines whether the CO will
// attempt to invoke the REQUIRED ControllerService RPCs, as well
// as specific RPCs as indicated by ControllerGetCapabilities.
PluginCapability_Service_CONTROLLER_SERVICE PluginCapability_Service_Type = 1
// ACCESSIBILITY_CONSTRAINTS indicates that the volumes for this
// plugin may not be equally accessible by all nodes in the
// cluster. The CO MUST use the topology information returned by
// CreateVolumeRequest along with the topology information
// returned by NodeGetInfo to ensure that a given volume is
// accessible from a given node when scheduling workloads.
PluginCapability_Service_ACCESSIBILITY_CONSTRAINTS PluginCapability_Service_Type = 2
)
var PluginCapability_Service_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CONTROLLER_SERVICE",
2: "ACCESSIBILITY_CONSTRAINTS",
}
var PluginCapability_Service_Type_value = map[string]int32{
"UNKNOWN": 0,
"CONTROLLER_SERVICE": 1,
"ACCESSIBILITY_CONSTRAINTS": 2,
}
func (x PluginCapability_Service_Type) String() string {
return proto.EnumName(PluginCapability_Service_Type_name, int32(x))
}
func (PluginCapability_Service_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{4, 0, 0}
}
type VolumeCapability_AccessMode_Mode int32
const (
VolumeCapability_AccessMode_UNKNOWN VolumeCapability_AccessMode_Mode = 0
// Can only be published once as read/write on a single node, at
// any given time.
VolumeCapability_AccessMode_SINGLE_NODE_WRITER VolumeCapability_AccessMode_Mode = 1
// Can only be published once as readonly on a single node, at
// any given time.
VolumeCapability_AccessMode_SINGLE_NODE_READER_ONLY VolumeCapability_AccessMode_Mode = 2
// Can be published as readonly at multiple nodes simultaneously.
VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY VolumeCapability_AccessMode_Mode = 3
// Can be published at multiple nodes simultaneously. Only one of
// the node can be used as read/write. The rest will be readonly.
VolumeCapability_AccessMode_MULTI_NODE_SINGLE_WRITER VolumeCapability_AccessMode_Mode = 4
// Can be published as read/write at multiple nodes
// simultaneously.
VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER VolumeCapability_AccessMode_Mode = 5
)
var VolumeCapability_AccessMode_Mode_name = map[int32]string{
0: "UNKNOWN",
1: "SINGLE_NODE_WRITER",
2: "SINGLE_NODE_READER_ONLY",
3: "MULTI_NODE_READER_ONLY",
4: "MULTI_NODE_SINGLE_WRITER",
5: "MULTI_NODE_MULTI_WRITER",
}
var VolumeCapability_AccessMode_Mode_value = map[string]int32{
"UNKNOWN": 0,
"SINGLE_NODE_WRITER": 1,
"SINGLE_NODE_READER_ONLY": 2,
"MULTI_NODE_READER_ONLY": 3,
"MULTI_NODE_SINGLE_WRITER": 4,
"MULTI_NODE_MULTI_WRITER": 5,
}
func (x VolumeCapability_AccessMode_Mode) String() string {
return proto.EnumName(VolumeCapability_AccessMode_Mode_name, int32(x))
}
func (VolumeCapability_AccessMode_Mode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{10, 2, 0}
}
type ControllerServiceCapability_RPC_Type int32
const (
ControllerServiceCapability_RPC_UNKNOWN ControllerServiceCapability_RPC_Type = 0
ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ControllerServiceCapability_RPC_Type = 1
ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ControllerServiceCapability_RPC_Type = 2
ControllerServiceCapability_RPC_LIST_VOLUMES ControllerServiceCapability_RPC_Type = 3
ControllerServiceCapability_RPC_GET_CAPACITY ControllerServiceCapability_RPC_Type = 4
// Currently the only way to consume a snapshot is to create
// a volume from it. Therefore plugins supporting
// CREATE_DELETE_SNAPSHOT MUST support creating volume from
// snapshot.
ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT ControllerServiceCapability_RPC_Type = 5
// LIST_SNAPSHOTS is NOT REQUIRED. For plugins that need to upload
// a snapshot after it is being cut, LIST_SNAPSHOTS COULD be used
// with the snapshot_id as the filter to query whether the
// uploading process is complete or not.
ControllerServiceCapability_RPC_LIST_SNAPSHOTS ControllerServiceCapability_RPC_Type = 6
)
var ControllerServiceCapability_RPC_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CREATE_DELETE_VOLUME",
2: "PUBLISH_UNPUBLISH_VOLUME",
3: "LIST_VOLUMES",
4: "GET_CAPACITY",
5: "CREATE_DELETE_SNAPSHOT",
6: "LIST_SNAPSHOTS",
}
var ControllerServiceCapability_RPC_Type_value = map[string]int32{
"UNKNOWN": 0,
"CREATE_DELETE_VOLUME": 1,
"PUBLISH_UNPUBLISH_VOLUME": 2,
"LIST_VOLUMES": 3,
"GET_CAPACITY": 4,
"CREATE_DELETE_SNAPSHOT": 5,
"LIST_SNAPSHOTS": 6,
}
func (x ControllerServiceCapability_RPC_Type) String() string {
return proto.EnumName(ControllerServiceCapability_RPC_Type_name, int32(x))
}
func (ControllerServiceCapability_RPC_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{29, 0, 0}
}
type SnapshotStatus_Type int32
const (
SnapshotStatus_UNKNOWN SnapshotStatus_Type = 0
// A snapshot is ready for use.
SnapshotStatus_READY SnapshotStatus_Type = 1
// A snapshot is cut and is now being uploaded.
// Some cloud providers and storage systems uploads the snapshot
// to the cloud after the snapshot is cut. During this phase,
// `thaw` can be done so the application can be running again if
// `freeze` was done before taking the snapshot.
SnapshotStatus_UPLOADING SnapshotStatus_Type = 2
// An error occurred during the snapshot uploading process.
// This error status is specific for uploading because
// `CreateSnaphot` is a blocking call before the snapshot is
// cut and therefore it SHOULD NOT come back with an error
// status when an error occurs. Instead a gRPC error code SHALL
// be returned by `CreateSnapshot` when an error occurs before
// a snapshot is cut.
SnapshotStatus_ERROR_UPLOADING SnapshotStatus_Type = 3
)
var SnapshotStatus_Type_name = map[int32]string{
0: "UNKNOWN",
1: "READY",
2: "UPLOADING",
3: "ERROR_UPLOADING",
}
var SnapshotStatus_Type_value = map[string]int32{
"UNKNOWN": 0,
"READY": 1,
"UPLOADING": 2,
"ERROR_UPLOADING": 3,
}
func (x SnapshotStatus_Type) String() string {
return proto.EnumName(SnapshotStatus_Type_name, int32(x))
}
func (SnapshotStatus_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{33, 0}
}
type NodeServiceCapability_RPC_Type int32
const (
NodeServiceCapability_RPC_UNKNOWN NodeServiceCapability_RPC_Type = 0
NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME NodeServiceCapability_RPC_Type = 1
)
var NodeServiceCapability_RPC_Type_name = map[int32]string{
0: "UNKNOWN",
1: "STAGE_UNSTAGE_VOLUME",
}
var NodeServiceCapability_RPC_Type_value = map[string]int32{
"UNKNOWN": 0,
"STAGE_UNSTAGE_VOLUME": 1,
}
func (x NodeServiceCapability_RPC_Type) String() string {
return proto.EnumName(NodeServiceCapability_RPC_Type_name, int32(x))
}
func (NodeServiceCapability_RPC_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{50, 0, 0}
}
type GetPluginInfoRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPluginInfoRequest) Reset() { *m = GetPluginInfoRequest{} }
func (m *GetPluginInfoRequest) String() string { return proto.CompactTextString(m) }
func (*GetPluginInfoRequest) ProtoMessage() {}
func (*GetPluginInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{0}
}
func (m *GetPluginInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPluginInfoRequest.Unmarshal(m, b)
}
func (m *GetPluginInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPluginInfoRequest.Marshal(b, m, deterministic)
}
func (dst *GetPluginInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPluginInfoRequest.Merge(dst, src)
}
func (m *GetPluginInfoRequest) XXX_Size() int {
return xxx_messageInfo_GetPluginInfoRequest.Size(m)
}
func (m *GetPluginInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetPluginInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetPluginInfoRequest proto.InternalMessageInfo
type GetPluginInfoResponse struct {
// The name MUST follow reverse domain name notation format
// (https://en.wikipedia.org/wiki/Reverse_domain_name_notation).
// It SHOULD include the plugin's host company name and the plugin
// name, to minimize the possibility of collisions. It MUST be 63
// characters or less, beginning and ending with an alphanumeric
// character ([a-z0-9A-Z]) with dashes (-), underscores (_),
// dots (.), and alphanumerics between. This field is REQUIRED.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// This field is REQUIRED. Value of this field is opaque to the CO.
VendorVersion string `protobuf:"bytes,2,opt,name=vendor_version,json=vendorVersion" json:"vendor_version,omitempty"`
// This field is OPTIONAL. Values are opaque to the CO.
Manifest map[string]string `protobuf:"bytes,3,rep,name=manifest" json:"manifest,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPluginInfoResponse) Reset() { *m = GetPluginInfoResponse{} }
func (m *GetPluginInfoResponse) String() string { return proto.CompactTextString(m) }
func (*GetPluginInfoResponse) ProtoMessage() {}
func (*GetPluginInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{1}
}
func (m *GetPluginInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPluginInfoResponse.Unmarshal(m, b)
}
func (m *GetPluginInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPluginInfoResponse.Marshal(b, m, deterministic)
}
func (dst *GetPluginInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPluginInfoResponse.Merge(dst, src)
}
func (m *GetPluginInfoResponse) XXX_Size() int {
return xxx_messageInfo_GetPluginInfoResponse.Size(m)
}
func (m *GetPluginInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetPluginInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetPluginInfoResponse proto.InternalMessageInfo
func (m *GetPluginInfoResponse) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetPluginInfoResponse) GetVendorVersion() string {
if m != nil {
return m.VendorVersion
}
return ""
}
func (m *GetPluginInfoResponse) GetManifest() map[string]string {
if m != nil {
return m.Manifest
}
return nil
}
type GetPluginCapabilitiesRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPluginCapabilitiesRequest) Reset() { *m = GetPluginCapabilitiesRequest{} }
func (m *GetPluginCapabilitiesRequest) String() string { return proto.CompactTextString(m) }
func (*GetPluginCapabilitiesRequest) ProtoMessage() {}
func (*GetPluginCapabilitiesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{2}
}
func (m *GetPluginCapabilitiesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPluginCapabilitiesRequest.Unmarshal(m, b)
}
func (m *GetPluginCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPluginCapabilitiesRequest.Marshal(b, m, deterministic)
}
func (dst *GetPluginCapabilitiesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPluginCapabilitiesRequest.Merge(dst, src)
}
func (m *GetPluginCapabilitiesRequest) XXX_Size() int {
return xxx_messageInfo_GetPluginCapabilitiesRequest.Size(m)
}
func (m *GetPluginCapabilitiesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetPluginCapabilitiesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetPluginCapabilitiesRequest proto.InternalMessageInfo
type GetPluginCapabilitiesResponse struct {
// All the capabilities that the controller service supports. This
// field is OPTIONAL.
Capabilities []*PluginCapability `protobuf:"bytes,2,rep,name=capabilities" json:"capabilities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPluginCapabilitiesResponse) Reset() { *m = GetPluginCapabilitiesResponse{} }
func (m *GetPluginCapabilitiesResponse) String() string { return proto.CompactTextString(m) }
func (*GetPluginCapabilitiesResponse) ProtoMessage() {}
func (*GetPluginCapabilitiesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{3}
}
func (m *GetPluginCapabilitiesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPluginCapabilitiesResponse.Unmarshal(m, b)
}
func (m *GetPluginCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPluginCapabilitiesResponse.Marshal(b, m, deterministic)
}
func (dst *GetPluginCapabilitiesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPluginCapabilitiesResponse.Merge(dst, src)
}
func (m *GetPluginCapabilitiesResponse) XXX_Size() int {
return xxx_messageInfo_GetPluginCapabilitiesResponse.Size(m)
}
func (m *GetPluginCapabilitiesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetPluginCapabilitiesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetPluginCapabilitiesResponse proto.InternalMessageInfo
func (m *GetPluginCapabilitiesResponse) GetCapabilities() []*PluginCapability {
if m != nil {
return m.Capabilities
}
return nil
}
// Specifies a capability of the plugin.
type PluginCapability struct {
// Types that are valid to be assigned to Type:
// *PluginCapability_Service_
Type isPluginCapability_Type `protobuf_oneof:"type"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PluginCapability) Reset() { *m = PluginCapability{} }
func (m *PluginCapability) String() string { return proto.CompactTextString(m) }
func (*PluginCapability) ProtoMessage() {}
func (*PluginCapability) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{4}
}
func (m *PluginCapability) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PluginCapability.Unmarshal(m, b)
}
func (m *PluginCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PluginCapability.Marshal(b, m, deterministic)
}
func (dst *PluginCapability) XXX_Merge(src proto.Message) {
xxx_messageInfo_PluginCapability.Merge(dst, src)
}
func (m *PluginCapability) XXX_Size() int {
return xxx_messageInfo_PluginCapability.Size(m)
}
func (m *PluginCapability) XXX_DiscardUnknown() {
xxx_messageInfo_PluginCapability.DiscardUnknown(m)
}
var xxx_messageInfo_PluginCapability proto.InternalMessageInfo
type isPluginCapability_Type interface {
isPluginCapability_Type()
}
type PluginCapability_Service_ struct {
Service *PluginCapability_Service `protobuf:"bytes,1,opt,name=service,oneof"`
}
func (*PluginCapability_Service_) isPluginCapability_Type() {}
func (m *PluginCapability) GetType() isPluginCapability_Type {
if m != nil {
return m.Type
}
return nil
}
func (m *PluginCapability) GetService() *PluginCapability_Service {
if x, ok := m.GetType().(*PluginCapability_Service_); ok {
return x.Service
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*PluginCapability) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _PluginCapability_OneofMarshaler, _PluginCapability_OneofUnmarshaler, _PluginCapability_OneofSizer, []interface{}{
(*PluginCapability_Service_)(nil),
}
}
func _PluginCapability_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*PluginCapability)
// type
switch x := m.Type.(type) {
case *PluginCapability_Service_:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Service); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("PluginCapability.Type has unexpected type %T", x)
}
return nil
}
func _PluginCapability_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*PluginCapability)
switch tag {
case 1: // type.service
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(PluginCapability_Service)
err := b.DecodeMessage(msg)
m.Type = &PluginCapability_Service_{msg}
return true, err
default:
return false, nil
}
}
func _PluginCapability_OneofSizer(msg proto.Message) (n int) {
m := msg.(*PluginCapability)
// type
switch x := m.Type.(type) {
case *PluginCapability_Service_:
s := proto.Size(x.Service)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type PluginCapability_Service struct {
Type PluginCapability_Service_Type `protobuf:"varint,1,opt,name=type,enum=csi.v0.PluginCapability_Service_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PluginCapability_Service) Reset() { *m = PluginCapability_Service{} }
func (m *PluginCapability_Service) String() string { return proto.CompactTextString(m) }
func (*PluginCapability_Service) ProtoMessage() {}
func (*PluginCapability_Service) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{4, 0}
}
func (m *PluginCapability_Service) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PluginCapability_Service.Unmarshal(m, b)
}
func (m *PluginCapability_Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PluginCapability_Service.Marshal(b, m, deterministic)
}
func (dst *PluginCapability_Service) XXX_Merge(src proto.Message) {
xxx_messageInfo_PluginCapability_Service.Merge(dst, src)
}
func (m *PluginCapability_Service) XXX_Size() int {
return xxx_messageInfo_PluginCapability_Service.Size(m)
}
func (m *PluginCapability_Service) XXX_DiscardUnknown() {
xxx_messageInfo_PluginCapability_Service.DiscardUnknown(m)
}
var xxx_messageInfo_PluginCapability_Service proto.InternalMessageInfo
func (m *PluginCapability_Service) GetType() PluginCapability_Service_Type {
if m != nil {
return m.Type
}
return PluginCapability_Service_UNKNOWN
}
type ProbeRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProbeRequest) Reset() { *m = ProbeRequest{} }
func (m *ProbeRequest) String() string { return proto.CompactTextString(m) }
func (*ProbeRequest) ProtoMessage() {}
func (*ProbeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{5}
}
func (m *ProbeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProbeRequest.Unmarshal(m, b)
}
func (m *ProbeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProbeRequest.Marshal(b, m, deterministic)
}
func (dst *ProbeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProbeRequest.Merge(dst, src)
}
func (m *ProbeRequest) XXX_Size() int {
return xxx_messageInfo_ProbeRequest.Size(m)
}
func (m *ProbeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ProbeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ProbeRequest proto.InternalMessageInfo
type ProbeResponse struct {
// Readiness allows a plugin to report its initialization status back
// to the CO. Initialization for some plugins MAY be time consuming
// and it is important for a CO to distinguish between the following
// cases:
//
// 1) The plugin is in an unhealthy state and MAY need restarting. In
// this case a gRPC error code SHALL be returned.
// 2) The plugin is still initializing, but is otherwise perfectly
// healthy. In this case a successful response SHALL be returned
// with a readiness value of `false`. Calls to the plugin's
// Controller and/or Node services MAY fail due to an incomplete
// initialization state.
// 3) The plugin has finished initializing and is ready to service
// calls to its Controller and/or Node services. A successful
// response is returned with a readiness value of `true`.
//
// This field is OPTIONAL. If not present, the caller SHALL assume
// that the plugin is in a ready state and is accepting calls to its
// Controller and/or Node services (according to the plugin's reported
// capabilities).
Ready *wrappers.BoolValue `protobuf:"bytes,1,opt,name=ready" json:"ready,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProbeResponse) Reset() { *m = ProbeResponse{} }
func (m *ProbeResponse) String() string { return proto.CompactTextString(m) }
func (*ProbeResponse) ProtoMessage() {}
func (*ProbeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{6}
}
func (m *ProbeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProbeResponse.Unmarshal(m, b)
}
func (m *ProbeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProbeResponse.Marshal(b, m, deterministic)
}
func (dst *ProbeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProbeResponse.Merge(dst, src)
}
func (m *ProbeResponse) XXX_Size() int {
return xxx_messageInfo_ProbeResponse.Size(m)
}
func (m *ProbeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProbeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProbeResponse proto.InternalMessageInfo
func (m *ProbeResponse) GetReady() *wrappers.BoolValue {
if m != nil {
return m.Ready
}
return nil
}
type CreateVolumeRequest struct {
// The suggested name for the storage space. This field is REQUIRED.
// It serves two purposes:
// 1) Idempotency - This name is generated by the CO to achieve
// idempotency. If `CreateVolume` fails, the volume may or may not
// be provisioned. In this case, the CO may call `CreateVolume`
// again, with the same name, to ensure the volume exists. The
// Plugin should ensure that multiple `CreateVolume` calls for the
// same name do not result in more than one piece of storage
// provisioned corresponding to that name. If a Plugin is unable to
// enforce idempotency, the CO's error recovery logic could result
// in multiple (unused) volumes being provisioned.
// 2) Suggested name - Some storage systems allow callers to specify
// an identifier by which to refer to the newly provisioned
// storage. If a storage system supports this, it can optionally
// use this name as the identifier for the new volume.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
CapacityRange *CapacityRange `protobuf:"bytes,2,opt,name=capacity_range,json=capacityRange" json:"capacity_range,omitempty"`
// The capabilities that the provisioned volume MUST have: the Plugin
// MUST provision a volume that could satisfy ALL of the
// capabilities specified in this list. The Plugin MUST assume that
// the CO MAY use the provisioned volume later with ANY of the
// capabilities specified in this list. This also enables the CO to do
// early validation: if ANY of the specified volume capabilities are
// not supported by the Plugin, the call SHALL fail. This field is
// REQUIRED.
VolumeCapabilities []*VolumeCapability `protobuf:"bytes,3,rep,name=volume_capabilities,json=volumeCapabilities" json:"volume_capabilities,omitempty"`
// Plugin specific parameters passed in as opaque key-value pairs.
// This field is OPTIONAL. The Plugin is responsible for parsing and
// validating these parameters. COs will treat these as opaque.
Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Secrets required by plugin to complete volume creation request.
// This field is OPTIONAL. Refer to the `Secrets Requirements`
// section on how to use this field.
ControllerCreateSecrets map[string]string `protobuf:"bytes,5,rep,name=controller_create_secrets,json=controllerCreateSecrets" json:"controller_create_secrets,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// If specified, the new volume will be pre-populated with data from
// this source. This field is OPTIONAL.
VolumeContentSource *VolumeContentSource `protobuf:"bytes,6,opt,name=volume_content_source,json=volumeContentSource" json:"volume_content_source,omitempty"`
// Specifies where (regions, zones, racks, etc.) the provisioned
// volume MUST be accessible from.
// An SP SHALL advertise the requirements for topological
// accessibility information in documentation. COs SHALL only specify
// topological accessibility information supported by the SP.
// This field is OPTIONAL.
// This field SHALL NOT be specified unless the SP has the
// ACCESSIBILITY_CONSTRAINTS plugin capability.
// If this field is not specified and the SP has the
// ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY choose
// where the provisioned volume is accessible from.
AccessibilityRequirements *TopologyRequirement `protobuf:"bytes,7,opt,name=accessibility_requirements,json=accessibilityRequirements" json:"accessibility_requirements,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateVolumeRequest) Reset() { *m = CreateVolumeRequest{} }
func (m *CreateVolumeRequest) String() string { return proto.CompactTextString(m) }
func (*CreateVolumeRequest) ProtoMessage() {}
func (*CreateVolumeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{7}
}
func (m *CreateVolumeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateVolumeRequest.Unmarshal(m, b)
}
func (m *CreateVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateVolumeRequest.Marshal(b, m, deterministic)
}
func (dst *CreateVolumeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateVolumeRequest.Merge(dst, src)
}
func (m *CreateVolumeRequest) XXX_Size() int {
return xxx_messageInfo_CreateVolumeRequest.Size(m)
}
func (m *CreateVolumeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateVolumeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateVolumeRequest proto.InternalMessageInfo
func (m *CreateVolumeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CreateVolumeRequest) GetCapacityRange() *CapacityRange {
if m != nil {
return m.CapacityRange
}
return nil
}
func (m *CreateVolumeRequest) GetVolumeCapabilities() []*VolumeCapability {
if m != nil {
return m.VolumeCapabilities
}
return nil
}
func (m *CreateVolumeRequest) GetParameters() map[string]string {
if m != nil {
return m.Parameters
}
return nil
}
func (m *CreateVolumeRequest) GetControllerCreateSecrets() map[string]string {
if m != nil {
return m.ControllerCreateSecrets
}
return nil
}
func (m *CreateVolumeRequest) GetVolumeContentSource() *VolumeContentSource {
if m != nil {
return m.VolumeContentSource
}
return nil
}
func (m *CreateVolumeRequest) GetAccessibilityRequirements() *TopologyRequirement {
if m != nil {
return m.AccessibilityRequirements
}
return nil
}
// Specifies what source the volume will be created from. One of the
// type fields MUST be specified.
type VolumeContentSource struct {
// Types that are valid to be assigned to Type:
// *VolumeContentSource_Snapshot
Type isVolumeContentSource_Type `protobuf_oneof:"type"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumeContentSource) Reset() { *m = VolumeContentSource{} }
func (m *VolumeContentSource) String() string { return proto.CompactTextString(m) }
func (*VolumeContentSource) ProtoMessage() {}
func (*VolumeContentSource) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{8}
}
func (m *VolumeContentSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumeContentSource.Unmarshal(m, b)
}
func (m *VolumeContentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumeContentSource.Marshal(b, m, deterministic)
}
func (dst *VolumeContentSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumeContentSource.Merge(dst, src)
}
func (m *VolumeContentSource) XXX_Size() int {
return xxx_messageInfo_VolumeContentSource.Size(m)
}
func (m *VolumeContentSource) XXX_DiscardUnknown() {
xxx_messageInfo_VolumeContentSource.DiscardUnknown(m)
}
var xxx_messageInfo_VolumeContentSource proto.InternalMessageInfo
type isVolumeContentSource_Type interface {
isVolumeContentSource_Type()
}
type VolumeContentSource_Snapshot struct {
Snapshot *VolumeContentSource_SnapshotSource `protobuf:"bytes,1,opt,name=snapshot,oneof"`
}
func (*VolumeContentSource_Snapshot) isVolumeContentSource_Type() {}
func (m *VolumeContentSource) GetType() isVolumeContentSource_Type {
if m != nil {
return m.Type
}
return nil
}
func (m *VolumeContentSource) GetSnapshot() *VolumeContentSource_SnapshotSource {
if x, ok := m.GetType().(*VolumeContentSource_Snapshot); ok {
return x.Snapshot
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*VolumeContentSource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _VolumeContentSource_OneofMarshaler, _VolumeContentSource_OneofUnmarshaler, _VolumeContentSource_OneofSizer, []interface{}{
(*VolumeContentSource_Snapshot)(nil),
}
}
func _VolumeContentSource_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*VolumeContentSource)
// type
switch x := m.Type.(type) {
case *VolumeContentSource_Snapshot:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Snapshot); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("VolumeContentSource.Type has unexpected type %T", x)
}
return nil
}
func _VolumeContentSource_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*VolumeContentSource)
switch tag {
case 1: // type.snapshot
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(VolumeContentSource_SnapshotSource)
err := b.DecodeMessage(msg)
m.Type = &VolumeContentSource_Snapshot{msg}
return true, err
default:
return false, nil
}
}
func _VolumeContentSource_OneofSizer(msg proto.Message) (n int) {
m := msg.(*VolumeContentSource)
// type
switch x := m.Type.(type) {
case *VolumeContentSource_Snapshot:
s := proto.Size(x.Snapshot)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type VolumeContentSource_SnapshotSource struct {
// Contains identity information for the existing source snapshot.
// This field is REQUIRED. Plugin is REQUIRED to support creating
// volume from snapshot if it supports the capability
// CREATE_DELETE_SNAPSHOT.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumeContentSource_SnapshotSource) Reset() { *m = VolumeContentSource_SnapshotSource{} }
func (m *VolumeContentSource_SnapshotSource) String() string { return proto.CompactTextString(m) }
func (*VolumeContentSource_SnapshotSource) ProtoMessage() {}
func (*VolumeContentSource_SnapshotSource) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{8, 0}
}
func (m *VolumeContentSource_SnapshotSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumeContentSource_SnapshotSource.Unmarshal(m, b)
}
func (m *VolumeContentSource_SnapshotSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumeContentSource_SnapshotSource.Marshal(b, m, deterministic)
}
func (dst *VolumeContentSource_SnapshotSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumeContentSource_SnapshotSource.Merge(dst, src)
}
func (m *VolumeContentSource_SnapshotSource) XXX_Size() int {
return xxx_messageInfo_VolumeContentSource_SnapshotSource.Size(m)
}
func (m *VolumeContentSource_SnapshotSource) XXX_DiscardUnknown() {
xxx_messageInfo_VolumeContentSource_SnapshotSource.DiscardUnknown(m)
}
var xxx_messageInfo_VolumeContentSource_SnapshotSource proto.InternalMessageInfo
func (m *VolumeContentSource_SnapshotSource) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type CreateVolumeResponse struct {
// Contains all attributes of the newly created volume that are
// relevant to the CO along with information required by the Plugin
// to uniquely identify the volume. This field is REQUIRED.
Volume *Volume `protobuf:"bytes,1,opt,name=volume" json:"volume,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateVolumeResponse) Reset() { *m = CreateVolumeResponse{} }
func (m *CreateVolumeResponse) String() string { return proto.CompactTextString(m) }
func (*CreateVolumeResponse) ProtoMessage() {}
func (*CreateVolumeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{9}
}
func (m *CreateVolumeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateVolumeResponse.Unmarshal(m, b)
}
func (m *CreateVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateVolumeResponse.Marshal(b, m, deterministic)
}
func (dst *CreateVolumeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateVolumeResponse.Merge(dst, src)
}
func (m *CreateVolumeResponse) XXX_Size() int {
return xxx_messageInfo_CreateVolumeResponse.Size(m)
}
func (m *CreateVolumeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateVolumeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateVolumeResponse proto.InternalMessageInfo
func (m *CreateVolumeResponse) GetVolume() *Volume {
if m != nil {
return m.Volume
}
return nil
}
// Specify a capability of a volume.
type VolumeCapability struct {
// Specifies what API the volume will be accessed using. One of the
// following fields MUST be specified.
//
// Types that are valid to be assigned to AccessType:
// *VolumeCapability_Block
// *VolumeCapability_Mount
AccessType isVolumeCapability_AccessType `protobuf_oneof:"access_type"`
// This is a REQUIRED field.
AccessMode *VolumeCapability_AccessMode `protobuf:"bytes,3,opt,name=access_mode,json=accessMode" json:"access_mode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumeCapability) Reset() { *m = VolumeCapability{} }
func (m *VolumeCapability) String() string { return proto.CompactTextString(m) }
func (*VolumeCapability) ProtoMessage() {}
func (*VolumeCapability) Descriptor() ([]byte, []int) {
return fileDescriptor_csi_31237507707d37ec, []int{10}
}
func (m *VolumeCapability) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumeCapability.Unmarshal(m, b)
}
func (m *VolumeCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumeCapability.Marshal(b, m, deterministic)
}
func (dst *VolumeCapability) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumeCapability.Merge(dst, src)
}
func (m *VolumeCapability) XXX_Size() int {
return xxx_messageInfo_VolumeCapability.Size(m)
}
func (m *VolumeCapability) XXX_DiscardUnknown() {
xxx_messageInfo_VolumeCapability.DiscardUnknown(m)