-
Notifications
You must be signed in to change notification settings - Fork 128
/
ctrl.pb.go
3503 lines (3088 loc) · 119 KB
/
ctrl.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.31.0
// protoc v3.21.12
// source: ctrl.proto
package ctrl_pb
import (
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)
)
// ContentTypes should be in the range 1000 - 1999, to ensure they don't overlap with cmd_pb messages
type ContentType int32
const (
ContentType_Zero ContentType = 0
ContentType_CircuitRequestType ContentType = 1000
// defined in ctrl_msg/messages.go now
// CircuitSuccessType = 1001;
ContentType_DialType ContentType = 1002
ContentType_LinkConnectedType ContentType = 1003
ContentType_FaultType ContentType = 1004
ContentType_RouteType ContentType = 1005
ContentType_UnrouteType ContentType = 1006
ContentType_MetricsType ContentType = 1007
ContentType_TogglePipeTracesRequestType ContentType = 1008
ContentType_TraceEventType ContentType = 1010
ContentType_CreateTerminatorRequestType ContentType = 1011
ContentType_RemoveTerminatorRequestType ContentType = 1012
ContentType_InspectRequestType ContentType = 1013
ContentType_InspectResponseType ContentType = 1014
// defined in ctrl_msg/messages.go now
// CircuitFailedType = 1016;
ContentType_ValidateTerminatorsRequestType ContentType = 1017
ContentType_UpdateTerminatorRequestType ContentType = 1018
// VerifyLinkType = 1019; Unusable since links are now generated by routers
ContentType_SettingsType ContentType = 1020
ContentType_CircuitConfirmationType ContentType = 1034
ContentType_RouterLinksType ContentType = 1035
ContentType_VerifyRouterType ContentType = 1036
ContentType_UpdateCtrlAddressesType ContentType = 1037
ContentType_RemoveTerminatorsRequestType ContentType = 1038
ContentType_QuiesceRouterRequestType ContentType = 1039
ContentType_DequiesceRouterRequestType ContentType = 1040
ContentType_ValidateTerminatorsV2RequestType ContentType = 1041
ContentType_ValidateTerminatorsV2ResponseType ContentType = 1042
ContentType_DecommissionRouterRequestType ContentType = 1043
ContentType_PeerStateChangeRequestType ContentType = 1050
)
// Enum value maps for ContentType.
var (
ContentType_name = map[int32]string{
0: "Zero",
1000: "CircuitRequestType",
1002: "DialType",
1003: "LinkConnectedType",
1004: "FaultType",
1005: "RouteType",
1006: "UnrouteType",
1007: "MetricsType",
1008: "TogglePipeTracesRequestType",
1010: "TraceEventType",
1011: "CreateTerminatorRequestType",
1012: "RemoveTerminatorRequestType",
1013: "InspectRequestType",
1014: "InspectResponseType",
1017: "ValidateTerminatorsRequestType",
1018: "UpdateTerminatorRequestType",
1020: "SettingsType",
1034: "CircuitConfirmationType",
1035: "RouterLinksType",
1036: "VerifyRouterType",
1037: "UpdateCtrlAddressesType",
1038: "RemoveTerminatorsRequestType",
1039: "QuiesceRouterRequestType",
1040: "DequiesceRouterRequestType",
1041: "ValidateTerminatorsV2RequestType",
1042: "ValidateTerminatorsV2ResponseType",
1043: "DecommissionRouterRequestType",
1050: "PeerStateChangeRequestType",
}
ContentType_value = map[string]int32{
"Zero": 0,
"CircuitRequestType": 1000,
"DialType": 1002,
"LinkConnectedType": 1003,
"FaultType": 1004,
"RouteType": 1005,
"UnrouteType": 1006,
"MetricsType": 1007,
"TogglePipeTracesRequestType": 1008,
"TraceEventType": 1010,
"CreateTerminatorRequestType": 1011,
"RemoveTerminatorRequestType": 1012,
"InspectRequestType": 1013,
"InspectResponseType": 1014,
"ValidateTerminatorsRequestType": 1017,
"UpdateTerminatorRequestType": 1018,
"SettingsType": 1020,
"CircuitConfirmationType": 1034,
"RouterLinksType": 1035,
"VerifyRouterType": 1036,
"UpdateCtrlAddressesType": 1037,
"RemoveTerminatorsRequestType": 1038,
"QuiesceRouterRequestType": 1039,
"DequiesceRouterRequestType": 1040,
"ValidateTerminatorsV2RequestType": 1041,
"ValidateTerminatorsV2ResponseType": 1042,
"DecommissionRouterRequestType": 1043,
"PeerStateChangeRequestType": 1050,
}
)
func (x ContentType) Enum() *ContentType {
p := new(ContentType)
*p = x
return p
}
func (x ContentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ContentType) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[0].Descriptor()
}
func (ContentType) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[0]
}
func (x ContentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ContentType.Descriptor instead.
func (ContentType) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{0}
}
type ControlHeaders int32
const (
ControlHeaders_NoneHeader ControlHeaders = 0
ControlHeaders_ListenersHeader ControlHeaders = 10
ControlHeaders_RouterMetadataHeader ControlHeaders = 11
ControlHeaders_CapabilitiesHeader ControlHeaders = 12
)
// Enum value maps for ControlHeaders.
var (
ControlHeaders_name = map[int32]string{
0: "NoneHeader",
10: "ListenersHeader",
11: "RouterMetadataHeader",
12: "CapabilitiesHeader",
}
ControlHeaders_value = map[string]int32{
"NoneHeader": 0,
"ListenersHeader": 10,
"RouterMetadataHeader": 11,
"CapabilitiesHeader": 12,
}
)
func (x ControlHeaders) Enum() *ControlHeaders {
p := new(ControlHeaders)
*p = x
return p
}
func (x ControlHeaders) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ControlHeaders) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[1].Descriptor()
}
func (ControlHeaders) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[1]
}
func (x ControlHeaders) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ControlHeaders.Descriptor instead.
func (ControlHeaders) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{1}
}
type RouterCapability int32
const (
RouterCapability_CapabilityZero RouterCapability = 0
RouterCapability_LinkManagement RouterCapability = 1
)
// Enum value maps for RouterCapability.
var (
RouterCapability_name = map[int32]string{
0: "CapabilityZero",
1: "LinkManagement",
}
RouterCapability_value = map[string]int32{
"CapabilityZero": 0,
"LinkManagement": 1,
}
)
func (x RouterCapability) Enum() *RouterCapability {
p := new(RouterCapability)
*p = x
return p
}
func (x RouterCapability) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RouterCapability) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[2].Descriptor()
}
func (RouterCapability) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[2]
}
func (x RouterCapability) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RouterCapability.Descriptor instead.
func (RouterCapability) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{2}
}
// SettingTypes are used with the Settings message send arbitrary settings to routers.
// SettingTypes default to int32 which can be used seamlessly for keys in the Settings.data field
type SettingTypes int32
const (
// unused, consume to avoid zero value accidents
SettingTypes_UnusedSetting SettingTypes = 0
// Sent to routers to notify them of a controller IP/hostname move
SettingTypes_NewCtrlAddress SettingTypes = 1
)
// Enum value maps for SettingTypes.
var (
SettingTypes_name = map[int32]string{
0: "UnusedSetting",
1: "NewCtrlAddress",
}
SettingTypes_value = map[string]int32{
"UnusedSetting": 0,
"NewCtrlAddress": 1,
}
)
func (x SettingTypes) Enum() *SettingTypes {
p := new(SettingTypes)
*p = x
return p
}
func (x SettingTypes) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SettingTypes) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[3].Descriptor()
}
func (SettingTypes) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[3]
}
func (x SettingTypes) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SettingTypes.Descriptor instead.
func (SettingTypes) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{3}
}
type TerminatorPrecedence int32
const (
TerminatorPrecedence_Default TerminatorPrecedence = 0
TerminatorPrecedence_Required TerminatorPrecedence = 1
TerminatorPrecedence_Failed TerminatorPrecedence = 2
)
// Enum value maps for TerminatorPrecedence.
var (
TerminatorPrecedence_name = map[int32]string{
0: "Default",
1: "Required",
2: "Failed",
}
TerminatorPrecedence_value = map[string]int32{
"Default": 0,
"Required": 1,
"Failed": 2,
}
)
func (x TerminatorPrecedence) Enum() *TerminatorPrecedence {
p := new(TerminatorPrecedence)
*p = x
return p
}
func (x TerminatorPrecedence) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TerminatorPrecedence) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[4].Descriptor()
}
func (TerminatorPrecedence) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[4]
}
func (x TerminatorPrecedence) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TerminatorPrecedence.Descriptor instead.
func (TerminatorPrecedence) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{4}
}
type TerminatorInvalidReason int32
const (
TerminatorInvalidReason_UnknownBinding TerminatorInvalidReason = 0
TerminatorInvalidReason_UnknownTerminator TerminatorInvalidReason = 1
TerminatorInvalidReason_BadState TerminatorInvalidReason = 2
)
// Enum value maps for TerminatorInvalidReason.
var (
TerminatorInvalidReason_name = map[int32]string{
0: "UnknownBinding",
1: "UnknownTerminator",
2: "BadState",
}
TerminatorInvalidReason_value = map[string]int32{
"UnknownBinding": 0,
"UnknownTerminator": 1,
"BadState": 2,
}
)
func (x TerminatorInvalidReason) Enum() *TerminatorInvalidReason {
p := new(TerminatorInvalidReason)
*p = x
return p
}
func (x TerminatorInvalidReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TerminatorInvalidReason) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[5].Descriptor()
}
func (TerminatorInvalidReason) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[5]
}
func (x TerminatorInvalidReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TerminatorInvalidReason.Descriptor instead.
func (TerminatorInvalidReason) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{5}
}
type FaultSubject int32
const (
FaultSubject_IngressFault FaultSubject = 0
FaultSubject_EgressFault FaultSubject = 1
FaultSubject_LinkFault FaultSubject = 2
FaultSubject_ForwardFault FaultSubject = 3
FaultSubject_UnknownOwnerForwardFault FaultSubject = 4
FaultSubject_LinkDuplicate FaultSubject = 5
)
// Enum value maps for FaultSubject.
var (
FaultSubject_name = map[int32]string{
0: "IngressFault",
1: "EgressFault",
2: "LinkFault",
3: "ForwardFault",
4: "UnknownOwnerForwardFault",
5: "LinkDuplicate",
}
FaultSubject_value = map[string]int32{
"IngressFault": 0,
"EgressFault": 1,
"LinkFault": 2,
"ForwardFault": 3,
"UnknownOwnerForwardFault": 4,
"LinkDuplicate": 5,
}
)
func (x FaultSubject) Enum() *FaultSubject {
p := new(FaultSubject)
*p = x
return p
}
func (x FaultSubject) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FaultSubject) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[6].Descriptor()
}
func (FaultSubject) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[6]
}
func (x FaultSubject) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FaultSubject.Descriptor instead.
func (FaultSubject) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{6}
}
type DestType int32
const (
DestType_Start DestType = 0
DestType_End DestType = 1
DestType_Link DestType = 2
)
// Enum value maps for DestType.
var (
DestType_name = map[int32]string{
0: "Start",
1: "End",
2: "Link",
}
DestType_value = map[string]int32{
"Start": 0,
"End": 1,
"Link": 2,
}
)
func (x DestType) Enum() *DestType {
p := new(DestType)
*p = x
return p
}
func (x DestType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DestType) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[7].Descriptor()
}
func (DestType) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[7]
}
func (x DestType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DestType.Descriptor instead.
func (DestType) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{7}
}
type PeerState int32
const (
PeerState_Healthy PeerState = 0
PeerState_Unhealthy PeerState = 1
PeerState_Removed PeerState = 2
)
// Enum value maps for PeerState.
var (
PeerState_name = map[int32]string{
0: "Healthy",
1: "Unhealthy",
2: "Removed",
}
PeerState_value = map[string]int32{
"Healthy": 0,
"Unhealthy": 1,
"Removed": 2,
}
)
func (x PeerState) Enum() *PeerState {
p := new(PeerState)
*p = x
return p
}
func (x PeerState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PeerState) Descriptor() protoreflect.EnumDescriptor {
return file_ctrl_proto_enumTypes[8].Descriptor()
}
func (PeerState) Type() protoreflect.EnumType {
return &file_ctrl_proto_enumTypes[8]
}
func (x PeerState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PeerState.Descriptor instead.
func (PeerState) EnumDescriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{8}
}
// Settings are sent to to routers to configure arbitrary runtime settings.
type Settings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data map[int32][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Settings) Reset() {
*x = Settings{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Settings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Settings) ProtoMessage() {}
func (x *Settings) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 Settings.ProtoReflect.Descriptor instead.
func (*Settings) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{0}
}
func (x *Settings) GetData() map[int32][]byte {
if x != nil {
return x.Data
}
return nil
}
type CircuitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IngressId string `protobuf:"bytes,1,opt,name=ingressId,proto3" json:"ingressId,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
PeerData map[uint32][]byte `protobuf:"bytes,3,rep,name=peerData,proto3" json:"peerData,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *CircuitRequest) Reset() {
*x = CircuitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CircuitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CircuitRequest) ProtoMessage() {}
func (x *CircuitRequest) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 CircuitRequest.ProtoReflect.Descriptor instead.
func (*CircuitRequest) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{1}
}
func (x *CircuitRequest) GetIngressId() string {
if x != nil {
return x.IngressId
}
return ""
}
func (x *CircuitRequest) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *CircuitRequest) GetPeerData() map[uint32][]byte {
if x != nil {
return x.PeerData
}
return nil
}
type CircuitConfirmation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CircuitIds []string `protobuf:"bytes,1,rep,name=circuitIds,proto3" json:"circuitIds,omitempty"`
IdleTimes map[string]int64 `protobuf:"bytes,2,rep,name=idleTimes,proto3" json:"idleTimes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (x *CircuitConfirmation) Reset() {
*x = CircuitConfirmation{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CircuitConfirmation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CircuitConfirmation) ProtoMessage() {}
func (x *CircuitConfirmation) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 CircuitConfirmation.ProtoReflect.Descriptor instead.
func (*CircuitConfirmation) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{2}
}
func (x *CircuitConfirmation) GetCircuitIds() []string {
if x != nil {
return x.CircuitIds
}
return nil
}
func (x *CircuitConfirmation) GetIdleTimes() map[string]int64 {
if x != nil {
return x.IdleTimes
}
return nil
}
type CreateTerminatorRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServiceId string `protobuf:"bytes,2,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
Binding string `protobuf:"bytes,3,opt,name=binding,proto3" json:"binding,omitempty"`
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
PeerData map[uint32][]byte `protobuf:"bytes,5,rep,name=peerData,proto3" json:"peerData,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Cost uint32 `protobuf:"varint,6,opt,name=cost,proto3" json:"cost,omitempty"`
Precedence TerminatorPrecedence `protobuf:"varint,7,opt,name=precedence,proto3,enum=ziti.ctrl.pb.TerminatorPrecedence" json:"precedence,omitempty"`
InstanceId string `protobuf:"bytes,8,opt,name=instanceId,proto3" json:"instanceId,omitempty"`
InstanceSecret []byte `protobuf:"bytes,9,opt,name=instanceSecret,proto3" json:"instanceSecret,omitempty"`
}
func (x *CreateTerminatorRequest) Reset() {
*x = CreateTerminatorRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateTerminatorRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTerminatorRequest) ProtoMessage() {}
func (x *CreateTerminatorRequest) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 CreateTerminatorRequest.ProtoReflect.Descriptor instead.
func (*CreateTerminatorRequest) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{3}
}
func (x *CreateTerminatorRequest) GetServiceId() string {
if x != nil {
return x.ServiceId
}
return ""
}
func (x *CreateTerminatorRequest) GetBinding() string {
if x != nil {
return x.Binding
}
return ""
}
func (x *CreateTerminatorRequest) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *CreateTerminatorRequest) GetPeerData() map[uint32][]byte {
if x != nil {
return x.PeerData
}
return nil
}
func (x *CreateTerminatorRequest) GetCost() uint32 {
if x != nil {
return x.Cost
}
return 0
}
func (x *CreateTerminatorRequest) GetPrecedence() TerminatorPrecedence {
if x != nil {
return x.Precedence
}
return TerminatorPrecedence_Default
}
func (x *CreateTerminatorRequest) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
func (x *CreateTerminatorRequest) GetInstanceSecret() []byte {
if x != nil {
return x.InstanceSecret
}
return nil
}
type RemoveTerminatorRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TerminatorId string `protobuf:"bytes,1,opt,name=terminatorId,proto3" json:"terminatorId,omitempty"`
}
func (x *RemoveTerminatorRequest) Reset() {
*x = RemoveTerminatorRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RemoveTerminatorRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveTerminatorRequest) ProtoMessage() {}
func (x *RemoveTerminatorRequest) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 RemoveTerminatorRequest.ProtoReflect.Descriptor instead.
func (*RemoveTerminatorRequest) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{4}
}
func (x *RemoveTerminatorRequest) GetTerminatorId() string {
if x != nil {
return x.TerminatorId
}
return ""
}
type RemoveTerminatorsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TerminatorIds []string `protobuf:"bytes,1,rep,name=terminatorIds,proto3" json:"terminatorIds,omitempty"`
}
func (x *RemoveTerminatorsRequest) Reset() {
*x = RemoveTerminatorsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RemoveTerminatorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveTerminatorsRequest) ProtoMessage() {}
func (x *RemoveTerminatorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 RemoveTerminatorsRequest.ProtoReflect.Descriptor instead.
func (*RemoveTerminatorsRequest) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{5}
}
func (x *RemoveTerminatorsRequest) GetTerminatorIds() []string {
if x != nil {
return x.TerminatorIds
}
return nil
}
type Terminator struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Binding string `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
Marker uint64 `protobuf:"varint,4,opt,name=marker,proto3" json:"marker,omitempty"`
}
func (x *Terminator) Reset() {
*x = Terminator{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Terminator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Terminator) ProtoMessage() {}
func (x *Terminator) ProtoReflect() protoreflect.Message {
mi := &file_ctrl_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 Terminator.ProtoReflect.Descriptor instead.
func (*Terminator) Descriptor() ([]byte, []int) {
return file_ctrl_proto_rawDescGZIP(), []int{6}
}
func (x *Terminator) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Terminator) GetBinding() string {
if x != nil {
return x.Binding
}
return ""
}
func (x *Terminator) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *Terminator) GetMarker() uint64 {
if x != nil {
return x.Marker
}
return 0
}
type ValidateTerminatorsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Terminators []*Terminator `protobuf:"bytes,1,rep,name=terminators,proto3" json:"terminators,omitempty"`
}
func (x *ValidateTerminatorsRequest) Reset() {
*x = ValidateTerminatorsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ctrl_proto_msgTypes[7]