-
Notifications
You must be signed in to change notification settings - Fork 1
/
replication.pb.go
2243 lines (2016 loc) · 98.5 KB
/
replication.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.20.0
// source: replication.proto
package replication
import (
common "github.com/dell/dell-csi-extensions/common"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ActionTypes are the exhaustive set of actions which can be performed on
// the protection group
type ActionTypes int32
const (
// Site-Aware actions
ActionTypes_UNKNOWN_ACTION ActionTypes = 0
// Failover - Write disable source device, suspend replication and make the target device ReadWrite
// Swap personalities of source and target device
// Failover to the local protection group (storage array)
ActionTypes_FAILOVER_LOCAL ActionTypes = 1
// Failover to the remote protection group (storage array)
ActionTypes_FAILOVER_REMOTE ActionTypes = 2
// Unplanned Failover
// Same as Failover but used in case of disaster
// Unplanned failover to the local storage array
ActionTypes_UNPLANNED_FAILOVER_LOCAL ActionTypes = 3
// Unplanned failover to the remote storage array
ActionTypes_UNPLANNED_FAILOVER_REMOTE ActionTypes = 4
// Reprotect
// Restart the replication in reverse direction
// Resume replication from local -> remote storage array
ActionTypes_REPROTECT_LOCAL ActionTypes = 5
// Resume replication from remote -> local storage array
ActionTypes_REPROTECT_REMOTE ActionTypes = 6
// Same as Failover but don't swap source & target devices
ActionTypes_FAILOVER_WITHOUT_SWAP_LOCAL ActionTypes = 7
ActionTypes_FAILOVER_WITHOUT_SWAP_REMOTE ActionTypes = 8
// Failback to the source device while keeping all writes done at target device
ActionTypes_FAILBACK_LOCAL ActionTypes = 9
ActionTypes_FAILBACK_REMOTE ActionTypes = 10
// Same as Failback but keep data from source (discard any writes at target)
ActionTypes_ACTION_FAILBACK_DISCARD_CHANGES_LOCAL ActionTypes = 11
ActionTypes_ACTION_FAILBACK_DISCARD_CHANGES_REMOTE ActionTypes = 12
// Swap personalities of source and target devices
ActionTypes_SWAP_LOCAL ActionTypes = 13
ActionTypes_SWAP_REMOTE ActionTypes = 14
// Suspend the replication link
ActionTypes_SUSPEND ActionTypes = 15
// Resume the replication link
ActionTypes_RESUME ActionTypes = 16
// Copy pending tracks from source to target
ActionTypes_ESTABLISH ActionTypes = 17
// Same as ESTABLISH
ActionTypes_SYNC ActionTypes = 18
ActionTypes_TEST_FAILOVER ActionTypes = 19
ActionTypes_TEST_FAILOVER_STOP ActionTypes = 20
ActionTypes_CREATE_SNAPSHOT ActionTypes = 21
ActionTypes_ABORT_SNAPSHOT ActionTypes = 22
)
// Enum value maps for ActionTypes.
var (
ActionTypes_name = map[int32]string{
0: "UNKNOWN_ACTION",
1: "FAILOVER_LOCAL",
2: "FAILOVER_REMOTE",
3: "UNPLANNED_FAILOVER_LOCAL",
4: "UNPLANNED_FAILOVER_REMOTE",
5: "REPROTECT_LOCAL",
6: "REPROTECT_REMOTE",
7: "FAILOVER_WITHOUT_SWAP_LOCAL",
8: "FAILOVER_WITHOUT_SWAP_REMOTE",
9: "FAILBACK_LOCAL",
10: "FAILBACK_REMOTE",
11: "ACTION_FAILBACK_DISCARD_CHANGES_LOCAL",
12: "ACTION_FAILBACK_DISCARD_CHANGES_REMOTE",
13: "SWAP_LOCAL",
14: "SWAP_REMOTE",
15: "SUSPEND",
16: "RESUME",
17: "ESTABLISH",
18: "SYNC",
19: "TEST_FAILOVER",
20: "TEST_FAILOVER_STOP",
21: "CREATE_SNAPSHOT",
22: "ABORT_SNAPSHOT",
}
ActionTypes_value = map[string]int32{
"UNKNOWN_ACTION": 0,
"FAILOVER_LOCAL": 1,
"FAILOVER_REMOTE": 2,
"UNPLANNED_FAILOVER_LOCAL": 3,
"UNPLANNED_FAILOVER_REMOTE": 4,
"REPROTECT_LOCAL": 5,
"REPROTECT_REMOTE": 6,
"FAILOVER_WITHOUT_SWAP_LOCAL": 7,
"FAILOVER_WITHOUT_SWAP_REMOTE": 8,
"FAILBACK_LOCAL": 9,
"FAILBACK_REMOTE": 10,
"ACTION_FAILBACK_DISCARD_CHANGES_LOCAL": 11,
"ACTION_FAILBACK_DISCARD_CHANGES_REMOTE": 12,
"SWAP_LOCAL": 13,
"SWAP_REMOTE": 14,
"SUSPEND": 15,
"RESUME": 16,
"ESTABLISH": 17,
"SYNC": 18,
"TEST_FAILOVER": 19,
"TEST_FAILOVER_STOP": 20,
"CREATE_SNAPSHOT": 21,
"ABORT_SNAPSHOT": 22,
}
)
func (x ActionTypes) Enum() *ActionTypes {
p := new(ActionTypes)
*p = x
return p
}
func (x ActionTypes) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ActionTypes) Descriptor() protoreflect.EnumDescriptor {
return file_replication_proto_enumTypes[0].Descriptor()
}
func (ActionTypes) Type() protoreflect.EnumType {
return &file_replication_proto_enumTypes[0]
}
func (x ActionTypes) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ActionTypes.Descriptor instead.
func (ActionTypes) EnumDescriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{0}
}
type ReplicationCapability_RPC_Type int32
const (
ReplicationCapability_RPC_CREATE_REMOTE_VOLUME ReplicationCapability_RPC_Type = 0
ReplicationCapability_RPC_CREATE_PROTECTION_GROUP ReplicationCapability_RPC_Type = 1
ReplicationCapability_RPC_DELETE_PROTECTION_GROUP ReplicationCapability_RPC_Type = 2
ReplicationCapability_RPC_MONITOR_PROTECTION_GROUP ReplicationCapability_RPC_Type = 3
ReplicationCapability_RPC_REPLICATION_ACTION_EXECUTION ReplicationCapability_RPC_Type = 4
)
// Enum value maps for ReplicationCapability_RPC_Type.
var (
ReplicationCapability_RPC_Type_name = map[int32]string{
0: "CREATE_REMOTE_VOLUME",
1: "CREATE_PROTECTION_GROUP",
2: "DELETE_PROTECTION_GROUP",
3: "MONITOR_PROTECTION_GROUP",
4: "REPLICATION_ACTION_EXECUTION",
}
ReplicationCapability_RPC_Type_value = map[string]int32{
"CREATE_REMOTE_VOLUME": 0,
"CREATE_PROTECTION_GROUP": 1,
"DELETE_PROTECTION_GROUP": 2,
"MONITOR_PROTECTION_GROUP": 3,
"REPLICATION_ACTION_EXECUTION": 4,
}
)
func (x ReplicationCapability_RPC_Type) Enum() *ReplicationCapability_RPC_Type {
p := new(ReplicationCapability_RPC_Type)
*p = x
return p
}
func (x ReplicationCapability_RPC_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ReplicationCapability_RPC_Type) Descriptor() protoreflect.EnumDescriptor {
return file_replication_proto_enumTypes[1].Descriptor()
}
func (ReplicationCapability_RPC_Type) Type() protoreflect.EnumType {
return &file_replication_proto_enumTypes[1]
}
func (x ReplicationCapability_RPC_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ReplicationCapability_RPC_Type.Descriptor instead.
func (ReplicationCapability_RPC_Type) EnumDescriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{2, 0, 0}
}
type StorageProtectionGroupStatus_State int32
const (
StorageProtectionGroupStatus_SYNCHRONIZED StorageProtectionGroupStatus_State = 0
StorageProtectionGroupStatus_SYNC_IN_PROGRESS StorageProtectionGroupStatus_State = 1
StorageProtectionGroupStatus_SUSPENDED StorageProtectionGroupStatus_State = 2
StorageProtectionGroupStatus_FAILEDOVER StorageProtectionGroupStatus_State = 3
StorageProtectionGroupStatus_INVALID StorageProtectionGroupStatus_State = 4
StorageProtectionGroupStatus_UNKNOWN StorageProtectionGroupStatus_State = 5
StorageProtectionGroupStatus_EMPTY StorageProtectionGroupStatus_State = 6
)
// Enum value maps for StorageProtectionGroupStatus_State.
var (
StorageProtectionGroupStatus_State_name = map[int32]string{
0: "SYNCHRONIZED",
1: "SYNC_IN_PROGRESS",
2: "SUSPENDED",
3: "FAILEDOVER",
4: "INVALID",
5: "UNKNOWN",
6: "EMPTY",
}
StorageProtectionGroupStatus_State_value = map[string]int32{
"SYNCHRONIZED": 0,
"SYNC_IN_PROGRESS": 1,
"SUSPENDED": 2,
"FAILEDOVER": 3,
"INVALID": 4,
"UNKNOWN": 5,
"EMPTY": 6,
}
)
func (x StorageProtectionGroupStatus_State) Enum() *StorageProtectionGroupStatus_State {
p := new(StorageProtectionGroupStatus_State)
*p = x
return p
}
func (x StorageProtectionGroupStatus_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StorageProtectionGroupStatus_State) Descriptor() protoreflect.EnumDescriptor {
return file_replication_proto_enumTypes[2].Descriptor()
}
func (StorageProtectionGroupStatus_State) Type() protoreflect.EnumType {
return &file_replication_proto_enumTypes[2]
}
func (x StorageProtectionGroupStatus_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StorageProtectionGroupStatus_State.Descriptor instead.
func (StorageProtectionGroupStatus_State) EnumDescriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{17, 0}
}
// Input request used in GetReplicationCapabilities API
type GetReplicationCapabilityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetReplicationCapabilityRequest) Reset() {
*x = GetReplicationCapabilityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetReplicationCapabilityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReplicationCapabilityRequest) ProtoMessage() {}
func (x *GetReplicationCapabilityRequest) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReplicationCapabilityRequest.ProtoReflect.Descriptor instead.
func (*GetReplicationCapabilityRequest) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{0}
}
// Capabilities of the driver, in terms of the
// RPC calls it supports
type GetReplicationCapabilityResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Capabilities []*ReplicationCapability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
Actions []*SupportedActions `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
}
func (x *GetReplicationCapabilityResponse) Reset() {
*x = GetReplicationCapabilityResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetReplicationCapabilityResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReplicationCapabilityResponse) ProtoMessage() {}
func (x *GetReplicationCapabilityResponse) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReplicationCapabilityResponse.ProtoReflect.Descriptor instead.
func (*GetReplicationCapabilityResponse) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{1}
}
func (x *GetReplicationCapabilityResponse) GetCapabilities() []*ReplicationCapability {
if x != nil {
return x.Capabilities
}
return nil
}
func (x *GetReplicationCapabilityResponse) GetActions() []*SupportedActions {
if x != nil {
return x.Actions
}
return nil
}
// ReplicationCapability is the set of replication capabilities
// which can be advertised by a CSI driver.
// For e.g. if a driver supports discovery of remote volume characteristics
// via the extensions API, then it needs to include DISCOVER_REMOTE_VOLUME
// in its list of replication capabilities
type ReplicationCapability struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Type:
//
// *ReplicationCapability_Rpc
Type isReplicationCapability_Type `protobuf_oneof:"type"`
}
func (x *ReplicationCapability) Reset() {
*x = ReplicationCapability{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReplicationCapability) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReplicationCapability) ProtoMessage() {}
func (x *ReplicationCapability) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReplicationCapability.ProtoReflect.Descriptor instead.
func (*ReplicationCapability) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{2}
}
func (m *ReplicationCapability) GetType() isReplicationCapability_Type {
if m != nil {
return m.Type
}
return nil
}
func (x *ReplicationCapability) GetRpc() *ReplicationCapability_RPC {
if x, ok := x.GetType().(*ReplicationCapability_Rpc); ok {
return x.Rpc
}
return nil
}
type isReplicationCapability_Type interface {
isReplicationCapability_Type()
}
type ReplicationCapability_Rpc struct {
Rpc *ReplicationCapability_RPC `protobuf:"bytes,1,opt,name=rpc,proto3,oneof"`
}
func (*ReplicationCapability_Rpc) isReplicationCapability_Type() {}
// SupportedActions is the set of action types
// which are supported by a specific CSI driver
type SupportedActions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Actions:
//
// *SupportedActions_Type
Actions isSupportedActions_Actions `protobuf_oneof:"Actions"`
}
func (x *SupportedActions) Reset() {
*x = SupportedActions{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SupportedActions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SupportedActions) ProtoMessage() {}
func (x *SupportedActions) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SupportedActions.ProtoReflect.Descriptor instead.
func (*SupportedActions) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{3}
}
func (m *SupportedActions) GetActions() isSupportedActions_Actions {
if m != nil {
return m.Actions
}
return nil
}
func (x *SupportedActions) GetType() ActionTypes {
if x, ok := x.GetActions().(*SupportedActions_Type); ok {
return x.Type
}
return ActionTypes_UNKNOWN_ACTION
}
type isSupportedActions_Actions interface {
isSupportedActions_Actions()
}
type SupportedActions_Type struct {
Type ActionTypes `protobuf:"varint,1,opt,name=type,proto3,enum=replication.v1.ActionTypes,oneof"`
}
func (*SupportedActions_Type) isSupportedActions_Actions() {}
type CreateRemoteVolumeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Handle of the local volume, whose remote replica is being requested
VolumeHandle string `protobuf:"bytes,1,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
// Optional information about the local volume
// will be supplied if the driver returned this information
// in the CSI CreateVolumeResponse
Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *CreateRemoteVolumeRequest) Reset() {
*x = CreateRemoteVolumeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRemoteVolumeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRemoteVolumeRequest) ProtoMessage() {}
func (x *CreateRemoteVolumeRequest) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRemoteVolumeRequest.ProtoReflect.Descriptor instead.
func (*CreateRemoteVolumeRequest) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{4}
}
func (x *CreateRemoteVolumeRequest) GetVolumeHandle() string {
if x != nil {
return x.VolumeHandle
}
return ""
}
func (x *CreateRemoteVolumeRequest) GetParameters() map[string]string {
if x != nil {
return x.Parameters
}
return nil
}
type DeleteLocalVolumeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Handle of the local volume, whose deletion is being requested
VolumeHandle string `protobuf:"bytes,1,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
// Attributes of the volume (optional)
VolumeAttributes map[string]string `protobuf:"bytes,2,rep,name=volume_attributes,json=volumeAttributes,proto3" json:"volume_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *DeleteLocalVolumeRequest) Reset() {
*x = DeleteLocalVolumeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteLocalVolumeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteLocalVolumeRequest) ProtoMessage() {}
func (x *DeleteLocalVolumeRequest) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteLocalVolumeRequest.ProtoReflect.Descriptor instead.
func (*DeleteLocalVolumeRequest) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{5}
}
func (x *DeleteLocalVolumeRequest) GetVolumeHandle() string {
if x != nil {
return x.VolumeHandle
}
return ""
}
func (x *DeleteLocalVolumeRequest) GetVolumeAttributes() map[string]string {
if x != nil {
return x.VolumeAttributes
}
return nil
}
type CreateStorageProtectionGroupRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Handle of the volume, whose storage protection group is being requested,
VolumeHandle string `protobuf:"bytes,1,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
// Optional information about the Volume
// will be supplied if the driver returned this information
// in the CSI CreateVolumeResponse
Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *CreateStorageProtectionGroupRequest) Reset() {
*x = CreateStorageProtectionGroupRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateStorageProtectionGroupRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateStorageProtectionGroupRequest) ProtoMessage() {}
func (x *CreateStorageProtectionGroupRequest) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateStorageProtectionGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateStorageProtectionGroupRequest) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{6}
}
func (x *CreateStorageProtectionGroupRequest) GetVolumeHandle() string {
if x != nil {
return x.VolumeHandle
}
return ""
}
func (x *CreateStorageProtectionGroupRequest) GetParameters() map[string]string {
if x != nil {
return x.Parameters
}
return nil
}
type CreateStorageProtectionGroupResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Identifier for the local storage protection group
// This should be unique for one CSI driver
LocalProtectionGroupId string `protobuf:"bytes,1,opt,name=local_protection_group_id,json=localProtectionGroupId,proto3" json:"local_protection_group_id,omitempty"`
// Identifier for the remote storage protection group
// This should be unique for one CSI driver
RemoteProtectionGroupId string `protobuf:"bytes,2,opt,name=remote_protection_group_id,json=remoteProtectionGroupId,proto3" json:"remote_protection_group_id,omitempty"`
// Attributes for the local storage protection group
LocalProtectionGroupAttributes map[string]string `protobuf:"bytes,3,rep,name=local_protection_group_attributes,json=localProtectionGroupAttributes,proto3" json:"local_protection_group_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Attributes for the remote storage protection group
RemoteProtectionGroupAttributes map[string]string `protobuf:"bytes,4,rep,name=remote_protection_group_attributes,json=remoteProtectionGroupAttributes,proto3" json:"remote_protection_group_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// status of the protection group
Status *StorageProtectionGroupStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *CreateStorageProtectionGroupResponse) Reset() {
*x = CreateStorageProtectionGroupResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateStorageProtectionGroupResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateStorageProtectionGroupResponse) ProtoMessage() {}
func (x *CreateStorageProtectionGroupResponse) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateStorageProtectionGroupResponse.ProtoReflect.Descriptor instead.
func (*CreateStorageProtectionGroupResponse) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{7}
}
func (x *CreateStorageProtectionGroupResponse) GetLocalProtectionGroupId() string {
if x != nil {
return x.LocalProtectionGroupId
}
return ""
}
func (x *CreateStorageProtectionGroupResponse) GetRemoteProtectionGroupId() string {
if x != nil {
return x.RemoteProtectionGroupId
}
return ""
}
func (x *CreateStorageProtectionGroupResponse) GetLocalProtectionGroupAttributes() map[string]string {
if x != nil {
return x.LocalProtectionGroupAttributes
}
return nil
}
func (x *CreateStorageProtectionGroupResponse) GetRemoteProtectionGroupAttributes() map[string]string {
if x != nil {
return x.RemoteProtectionGroupAttributes
}
return nil
}
func (x *CreateStorageProtectionGroupResponse) GetStatus() *StorageProtectionGroupStatus {
if x != nil {
return x.Status
}
return nil
}
// Information about the remote replica of a local volume
type CreateRemoteVolumeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Remote Volume
RemoteVolume *Volume `protobuf:"bytes,1,opt,name=remote_volume,json=remoteVolume,proto3" json:"remote_volume,omitempty"`
}
func (x *CreateRemoteVolumeResponse) Reset() {
*x = CreateRemoteVolumeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRemoteVolumeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRemoteVolumeResponse) ProtoMessage() {}
func (x *CreateRemoteVolumeResponse) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateRemoteVolumeResponse.ProtoReflect.Descriptor instead.
func (*CreateRemoteVolumeResponse) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{8}
}
func (x *CreateRemoteVolumeResponse) GetRemoteVolume() *Volume {
if x != nil {
return x.RemoteVolume
}
return nil
}
type DeleteLocalVolumeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DeleteLocalVolumeResponse) Reset() {
*x = DeleteLocalVolumeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteLocalVolumeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteLocalVolumeResponse) ProtoMessage() {}
func (x *DeleteLocalVolumeResponse) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteLocalVolumeResponse.ProtoReflect.Descriptor instead.
func (*DeleteLocalVolumeResponse) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{9}
}
// Information about a specific volume
type Volume struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Size of the volume in bytes
CapacityBytes int64 `protobuf:"varint,1,opt,name=capacity_bytes,json=capacityBytes,proto3" json:"capacity_bytes,omitempty"`
// Volume ID - should be the same as one
// returned in the CSI CreateVolumeResponse
VolumeId string `protobuf:"bytes,2,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"`
// Optional context information about the volume
// which can be passed down to the driver in future calls
VolumeContext map[string]string `protobuf:"bytes,3,rep,name=volume_context,json=volumeContext,proto3" json:"volume_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Volume) Reset() {
*x = Volume{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Volume) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Volume) ProtoMessage() {}
func (x *Volume) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Volume.ProtoReflect.Descriptor instead.
func (*Volume) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{10}
}
func (x *Volume) GetCapacityBytes() int64 {
if x != nil {
return x.CapacityBytes
}
return 0
}
func (x *Volume) GetVolumeId() string {
if x != nil {
return x.VolumeId
}
return ""
}
func (x *Volume) GetVolumeContext() map[string]string {
if x != nil {
return x.VolumeContext
}
return nil
}
type DeleteStorageProtectionGroupRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Unique identifier, representing the storage protection group
ProtectionGroupId string `protobuf:"bytes,1,opt,name=protection_group_id,json=protectionGroupId,proto3" json:"protection_group_id,omitempty"`
// Attributes of the storage protection group (optional)
ProtectionGroupAttributes map[string]string `protobuf:"bytes,2,rep,name=protection_group_attributes,json=protectionGroupAttributes,proto3" json:"protection_group_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *DeleteStorageProtectionGroupRequest) Reset() {
*x = DeleteStorageProtectionGroupRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteStorageProtectionGroupRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteStorageProtectionGroupRequest) ProtoMessage() {}
func (x *DeleteStorageProtectionGroupRequest) ProtoReflect() protoreflect.Message {
mi := &file_replication_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteStorageProtectionGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteStorageProtectionGroupRequest) Descriptor() ([]byte, []int) {
return file_replication_proto_rawDescGZIP(), []int{11}
}
func (x *DeleteStorageProtectionGroupRequest) GetProtectionGroupId() string {
if x != nil {
return x.ProtectionGroupId
}
return ""
}
func (x *DeleteStorageProtectionGroupRequest) GetProtectionGroupAttributes() map[string]string {
if x != nil {
return x.ProtectionGroupAttributes
}
return nil
}
type DeleteStorageProtectionGroupResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DeleteStorageProtectionGroupResponse) Reset() {
*x = DeleteStorageProtectionGroupResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_replication_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteStorageProtectionGroupResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}