-
Notifications
You must be signed in to change notification settings - Fork 687
/
cluster.pb.go
3030 lines (2716 loc) · 151 KB
/
cluster.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.22.0
// protoc v3.10.1
// source: envoy/config/cluster/v3/cluster.proto
package envoy_config_cluster_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
v1 "github.com/cncf/udpa/go/udpa/core/v1"
_ "github.com/datawire/ambassador/v2/pkg/api/envoy/annotations"
v31 "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v3"
v3 "github.com/datawire/ambassador/v2/pkg/api/envoy/config/endpoint/v3"
v32 "github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/transport_sockets/tls/v3"
v33 "github.com/datawire/ambassador/v2/pkg/api/envoy/type/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
_struct "github.com/golang/protobuf/ptypes/struct"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Cluster_DiscoveryType int32
const (
Cluster_STATIC Cluster_DiscoveryType = 0
Cluster_STRICT_DNS Cluster_DiscoveryType = 1
Cluster_LOGICAL_DNS Cluster_DiscoveryType = 2
Cluster_EDS Cluster_DiscoveryType = 3
Cluster_ORIGINAL_DST Cluster_DiscoveryType = 4
)
// Enum value maps for Cluster_DiscoveryType.
var (
Cluster_DiscoveryType_name = map[int32]string{
0: "STATIC",
1: "STRICT_DNS",
2: "LOGICAL_DNS",
3: "EDS",
4: "ORIGINAL_DST",
}
Cluster_DiscoveryType_value = map[string]int32{
"STATIC": 0,
"STRICT_DNS": 1,
"LOGICAL_DNS": 2,
"EDS": 3,
"ORIGINAL_DST": 4,
}
)
func (x Cluster_DiscoveryType) Enum() *Cluster_DiscoveryType {
p := new(Cluster_DiscoveryType)
*p = x
return p
}
func (x Cluster_DiscoveryType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_DiscoveryType) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[0].Descriptor()
}
func (Cluster_DiscoveryType) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[0]
}
func (x Cluster_DiscoveryType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_DiscoveryType.Descriptor instead.
func (Cluster_DiscoveryType) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 0}
}
type Cluster_LbPolicy int32
const (
Cluster_ROUND_ROBIN Cluster_LbPolicy = 0
Cluster_LEAST_REQUEST Cluster_LbPolicy = 1
Cluster_RING_HASH Cluster_LbPolicy = 2
Cluster_RANDOM Cluster_LbPolicy = 3
Cluster_MAGLEV Cluster_LbPolicy = 5
Cluster_CLUSTER_PROVIDED Cluster_LbPolicy = 6
Cluster_LOAD_BALANCING_POLICY_CONFIG Cluster_LbPolicy = 7
// Deprecated: Do not use.
Cluster_hidden_envoy_deprecated_ORIGINAL_DST_LB Cluster_LbPolicy = 4
)
// Enum value maps for Cluster_LbPolicy.
var (
Cluster_LbPolicy_name = map[int32]string{
0: "ROUND_ROBIN",
1: "LEAST_REQUEST",
2: "RING_HASH",
3: "RANDOM",
5: "MAGLEV",
6: "CLUSTER_PROVIDED",
7: "LOAD_BALANCING_POLICY_CONFIG",
4: "hidden_envoy_deprecated_ORIGINAL_DST_LB",
}
Cluster_LbPolicy_value = map[string]int32{
"ROUND_ROBIN": 0,
"LEAST_REQUEST": 1,
"RING_HASH": 2,
"RANDOM": 3,
"MAGLEV": 5,
"CLUSTER_PROVIDED": 6,
"LOAD_BALANCING_POLICY_CONFIG": 7,
"hidden_envoy_deprecated_ORIGINAL_DST_LB": 4,
}
)
func (x Cluster_LbPolicy) Enum() *Cluster_LbPolicy {
p := new(Cluster_LbPolicy)
*p = x
return p
}
func (x Cluster_LbPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_LbPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[1].Descriptor()
}
func (Cluster_LbPolicy) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[1]
}
func (x Cluster_LbPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_LbPolicy.Descriptor instead.
func (Cluster_LbPolicy) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 1}
}
type Cluster_DnsLookupFamily int32
const (
Cluster_AUTO Cluster_DnsLookupFamily = 0
Cluster_V4_ONLY Cluster_DnsLookupFamily = 1
Cluster_V6_ONLY Cluster_DnsLookupFamily = 2
)
// Enum value maps for Cluster_DnsLookupFamily.
var (
Cluster_DnsLookupFamily_name = map[int32]string{
0: "AUTO",
1: "V4_ONLY",
2: "V6_ONLY",
}
Cluster_DnsLookupFamily_value = map[string]int32{
"AUTO": 0,
"V4_ONLY": 1,
"V6_ONLY": 2,
}
)
func (x Cluster_DnsLookupFamily) Enum() *Cluster_DnsLookupFamily {
p := new(Cluster_DnsLookupFamily)
*p = x
return p
}
func (x Cluster_DnsLookupFamily) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_DnsLookupFamily) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[2].Descriptor()
}
func (Cluster_DnsLookupFamily) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[2]
}
func (x Cluster_DnsLookupFamily) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_DnsLookupFamily.Descriptor instead.
func (Cluster_DnsLookupFamily) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 2}
}
type Cluster_ClusterProtocolSelection int32
const (
Cluster_USE_CONFIGURED_PROTOCOL Cluster_ClusterProtocolSelection = 0
Cluster_USE_DOWNSTREAM_PROTOCOL Cluster_ClusterProtocolSelection = 1
)
// Enum value maps for Cluster_ClusterProtocolSelection.
var (
Cluster_ClusterProtocolSelection_name = map[int32]string{
0: "USE_CONFIGURED_PROTOCOL",
1: "USE_DOWNSTREAM_PROTOCOL",
}
Cluster_ClusterProtocolSelection_value = map[string]int32{
"USE_CONFIGURED_PROTOCOL": 0,
"USE_DOWNSTREAM_PROTOCOL": 1,
}
)
func (x Cluster_ClusterProtocolSelection) Enum() *Cluster_ClusterProtocolSelection {
p := new(Cluster_ClusterProtocolSelection)
*p = x
return p
}
func (x Cluster_ClusterProtocolSelection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_ClusterProtocolSelection) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[3].Descriptor()
}
func (Cluster_ClusterProtocolSelection) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[3]
}
func (x Cluster_ClusterProtocolSelection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_ClusterProtocolSelection.Descriptor instead.
func (Cluster_ClusterProtocolSelection) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 3}
}
type Cluster_LbSubsetConfig_LbSubsetFallbackPolicy int32
const (
Cluster_LbSubsetConfig_NO_FALLBACK Cluster_LbSubsetConfig_LbSubsetFallbackPolicy = 0
Cluster_LbSubsetConfig_ANY_ENDPOINT Cluster_LbSubsetConfig_LbSubsetFallbackPolicy = 1
Cluster_LbSubsetConfig_DEFAULT_SUBSET Cluster_LbSubsetConfig_LbSubsetFallbackPolicy = 2
)
// Enum value maps for Cluster_LbSubsetConfig_LbSubsetFallbackPolicy.
var (
Cluster_LbSubsetConfig_LbSubsetFallbackPolicy_name = map[int32]string{
0: "NO_FALLBACK",
1: "ANY_ENDPOINT",
2: "DEFAULT_SUBSET",
}
Cluster_LbSubsetConfig_LbSubsetFallbackPolicy_value = map[string]int32{
"NO_FALLBACK": 0,
"ANY_ENDPOINT": 1,
"DEFAULT_SUBSET": 2,
}
)
func (x Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) Enum() *Cluster_LbSubsetConfig_LbSubsetFallbackPolicy {
p := new(Cluster_LbSubsetConfig_LbSubsetFallbackPolicy)
*p = x
return p
}
func (x Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[4].Descriptor()
}
func (Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[4]
}
func (x Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_LbSubsetConfig_LbSubsetFallbackPolicy.Descriptor instead.
func (Cluster_LbSubsetConfig_LbSubsetFallbackPolicy) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 3, 0}
}
type Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy int32
const (
Cluster_LbSubsetConfig_LbSubsetSelector_NOT_DEFINED Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy = 0
Cluster_LbSubsetConfig_LbSubsetSelector_NO_FALLBACK Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy = 1
Cluster_LbSubsetConfig_LbSubsetSelector_ANY_ENDPOINT Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy = 2
Cluster_LbSubsetConfig_LbSubsetSelector_DEFAULT_SUBSET Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy = 3
Cluster_LbSubsetConfig_LbSubsetSelector_KEYS_SUBSET Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy = 4
)
// Enum value maps for Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy.
var (
Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy_name = map[int32]string{
0: "NOT_DEFINED",
1: "NO_FALLBACK",
2: "ANY_ENDPOINT",
3: "DEFAULT_SUBSET",
4: "KEYS_SUBSET",
}
Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy_value = map[string]int32{
"NOT_DEFINED": 0,
"NO_FALLBACK": 1,
"ANY_ENDPOINT": 2,
"DEFAULT_SUBSET": 3,
"KEYS_SUBSET": 4,
}
)
func (x Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) Enum() *Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy {
p := new(Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy)
*p = x
return p
}
func (x Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[5].Descriptor()
}
func (Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[5]
}
func (x Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy.Descriptor instead.
func (Cluster_LbSubsetConfig_LbSubsetSelector_LbSubsetSelectorFallbackPolicy) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 3, 0, 0}
}
type Cluster_RingHashLbConfig_HashFunction int32
const (
Cluster_RingHashLbConfig_XX_HASH Cluster_RingHashLbConfig_HashFunction = 0
Cluster_RingHashLbConfig_MURMUR_HASH_2 Cluster_RingHashLbConfig_HashFunction = 1
)
// Enum value maps for Cluster_RingHashLbConfig_HashFunction.
var (
Cluster_RingHashLbConfig_HashFunction_name = map[int32]string{
0: "XX_HASH",
1: "MURMUR_HASH_2",
}
Cluster_RingHashLbConfig_HashFunction_value = map[string]int32{
"XX_HASH": 0,
"MURMUR_HASH_2": 1,
}
)
func (x Cluster_RingHashLbConfig_HashFunction) Enum() *Cluster_RingHashLbConfig_HashFunction {
p := new(Cluster_RingHashLbConfig_HashFunction)
*p = x
return p
}
func (x Cluster_RingHashLbConfig_HashFunction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_RingHashLbConfig_HashFunction) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_cluster_v3_cluster_proto_enumTypes[6].Descriptor()
}
func (Cluster_RingHashLbConfig_HashFunction) Type() protoreflect.EnumType {
return &file_envoy_config_cluster_v3_cluster_proto_enumTypes[6]
}
func (x Cluster_RingHashLbConfig_HashFunction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_RingHashLbConfig_HashFunction.Descriptor instead.
func (Cluster_RingHashLbConfig_HashFunction) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1, 5, 0}
}
type ClusterCollection struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Entries *v1.CollectionEntry `protobuf:"bytes,1,opt,name=entries,proto3" json:"entries,omitempty"`
}
func (x *ClusterCollection) Reset() {
*x = ClusterCollection{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_cluster_v3_cluster_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterCollection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterCollection) ProtoMessage() {}
func (x *ClusterCollection) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_cluster_v3_cluster_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 ClusterCollection.ProtoReflect.Descriptor instead.
func (*ClusterCollection) Descriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{0}
}
func (x *ClusterCollection) GetEntries() *v1.CollectionEntry {
if x != nil {
return x.Entries
}
return nil
}
type Cluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TransportSocketMatches []*Cluster_TransportSocketMatch `protobuf:"bytes,43,rep,name=transport_socket_matches,json=transportSocketMatches,proto3" json:"transport_socket_matches,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
AltStatName string `protobuf:"bytes,28,opt,name=alt_stat_name,json=altStatName,proto3" json:"alt_stat_name,omitempty"`
// Types that are assignable to ClusterDiscoveryType:
// *Cluster_Type
// *Cluster_ClusterType
ClusterDiscoveryType isCluster_ClusterDiscoveryType `protobuf_oneof:"cluster_discovery_type"`
EdsClusterConfig *Cluster_EdsClusterConfig `protobuf:"bytes,3,opt,name=eds_cluster_config,json=edsClusterConfig,proto3" json:"eds_cluster_config,omitempty"`
ConnectTimeout *duration.Duration `protobuf:"bytes,4,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
PerConnectionBufferLimitBytes *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=per_connection_buffer_limit_bytes,json=perConnectionBufferLimitBytes,proto3" json:"per_connection_buffer_limit_bytes,omitempty"`
LbPolicy Cluster_LbPolicy `protobuf:"varint,6,opt,name=lb_policy,json=lbPolicy,proto3,enum=envoy.config.cluster.v3.Cluster_LbPolicy" json:"lb_policy,omitempty"`
LoadAssignment *v3.ClusterLoadAssignment `protobuf:"bytes,33,opt,name=load_assignment,json=loadAssignment,proto3" json:"load_assignment,omitempty"`
HealthChecks []*v31.HealthCheck `protobuf:"bytes,8,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"`
MaxRequestsPerConnection *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=max_requests_per_connection,json=maxRequestsPerConnection,proto3" json:"max_requests_per_connection,omitempty"`
CircuitBreakers *CircuitBreakers `protobuf:"bytes,10,opt,name=circuit_breakers,json=circuitBreakers,proto3" json:"circuit_breakers,omitempty"`
UpstreamHttpProtocolOptions *v31.UpstreamHttpProtocolOptions `protobuf:"bytes,46,opt,name=upstream_http_protocol_options,json=upstreamHttpProtocolOptions,proto3" json:"upstream_http_protocol_options,omitempty"`
CommonHttpProtocolOptions *v31.HttpProtocolOptions `protobuf:"bytes,29,opt,name=common_http_protocol_options,json=commonHttpProtocolOptions,proto3" json:"common_http_protocol_options,omitempty"`
HttpProtocolOptions *v31.Http1ProtocolOptions `protobuf:"bytes,13,opt,name=http_protocol_options,json=httpProtocolOptions,proto3" json:"http_protocol_options,omitempty"`
Http2ProtocolOptions *v31.Http2ProtocolOptions `protobuf:"bytes,14,opt,name=http2_protocol_options,json=http2ProtocolOptions,proto3" json:"http2_protocol_options,omitempty"`
TypedExtensionProtocolOptions map[string]*any.Any `protobuf:"bytes,36,rep,name=typed_extension_protocol_options,json=typedExtensionProtocolOptions,proto3" json:"typed_extension_protocol_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
DnsRefreshRate *duration.Duration `protobuf:"bytes,16,opt,name=dns_refresh_rate,json=dnsRefreshRate,proto3" json:"dns_refresh_rate,omitempty"`
DnsFailureRefreshRate *Cluster_RefreshRate `protobuf:"bytes,44,opt,name=dns_failure_refresh_rate,json=dnsFailureRefreshRate,proto3" json:"dns_failure_refresh_rate,omitempty"`
RespectDnsTtl bool `protobuf:"varint,39,opt,name=respect_dns_ttl,json=respectDnsTtl,proto3" json:"respect_dns_ttl,omitempty"`
DnsLookupFamily Cluster_DnsLookupFamily `protobuf:"varint,17,opt,name=dns_lookup_family,json=dnsLookupFamily,proto3,enum=envoy.config.cluster.v3.Cluster_DnsLookupFamily" json:"dns_lookup_family,omitempty"`
DnsResolvers []*v31.Address `protobuf:"bytes,18,rep,name=dns_resolvers,json=dnsResolvers,proto3" json:"dns_resolvers,omitempty"`
UseTcpForDnsLookups bool `protobuf:"varint,45,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"`
OutlierDetection *OutlierDetection `protobuf:"bytes,19,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
CleanupInterval *duration.Duration `protobuf:"bytes,20,opt,name=cleanup_interval,json=cleanupInterval,proto3" json:"cleanup_interval,omitempty"`
UpstreamBindConfig *v31.BindConfig `protobuf:"bytes,21,opt,name=upstream_bind_config,json=upstreamBindConfig,proto3" json:"upstream_bind_config,omitempty"`
LbSubsetConfig *Cluster_LbSubsetConfig `protobuf:"bytes,22,opt,name=lb_subset_config,json=lbSubsetConfig,proto3" json:"lb_subset_config,omitempty"`
// Types that are assignable to LbConfig:
// *Cluster_RingHashLbConfig_
// *Cluster_OriginalDstLbConfig_
// *Cluster_LeastRequestLbConfig_
LbConfig isCluster_LbConfig `protobuf_oneof:"lb_config"`
CommonLbConfig *Cluster_CommonLbConfig `protobuf:"bytes,27,opt,name=common_lb_config,json=commonLbConfig,proto3" json:"common_lb_config,omitempty"`
TransportSocket *v31.TransportSocket `protobuf:"bytes,24,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"`
Metadata *v31.Metadata `protobuf:"bytes,25,opt,name=metadata,proto3" json:"metadata,omitempty"`
ProtocolSelection Cluster_ClusterProtocolSelection `protobuf:"varint,26,opt,name=protocol_selection,json=protocolSelection,proto3,enum=envoy.config.cluster.v3.Cluster_ClusterProtocolSelection" json:"protocol_selection,omitempty"`
UpstreamConnectionOptions *UpstreamConnectionOptions `protobuf:"bytes,30,opt,name=upstream_connection_options,json=upstreamConnectionOptions,proto3" json:"upstream_connection_options,omitempty"`
CloseConnectionsOnHostHealthFailure bool `protobuf:"varint,31,opt,name=close_connections_on_host_health_failure,json=closeConnectionsOnHostHealthFailure,proto3" json:"close_connections_on_host_health_failure,omitempty"`
IgnoreHealthOnHostRemoval bool `protobuf:"varint,32,opt,name=ignore_health_on_host_removal,json=ignoreHealthOnHostRemoval,proto3" json:"ignore_health_on_host_removal,omitempty"`
Filters []*Filter `protobuf:"bytes,40,rep,name=filters,proto3" json:"filters,omitempty"`
LoadBalancingPolicy *LoadBalancingPolicy `protobuf:"bytes,41,opt,name=load_balancing_policy,json=loadBalancingPolicy,proto3" json:"load_balancing_policy,omitempty"`
LrsServer *v31.ConfigSource `protobuf:"bytes,42,opt,name=lrs_server,json=lrsServer,proto3" json:"lrs_server,omitempty"`
TrackTimeoutBudgets bool `protobuf:"varint,47,opt,name=track_timeout_budgets,json=trackTimeoutBudgets,proto3" json:"track_timeout_budgets,omitempty"`
UpstreamConfig *v31.TypedExtensionConfig `protobuf:"bytes,48,opt,name=upstream_config,json=upstreamConfig,proto3" json:"upstream_config,omitempty"`
// Deprecated: Do not use.
HiddenEnvoyDeprecatedHosts []*v31.Address `protobuf:"bytes,7,rep,name=hidden_envoy_deprecated_hosts,json=hiddenEnvoyDeprecatedHosts,proto3" json:"hidden_envoy_deprecated_hosts,omitempty"`
// Deprecated: Do not use.
HiddenEnvoyDeprecatedTlsContext *v32.UpstreamTlsContext `protobuf:"bytes,11,opt,name=hidden_envoy_deprecated_tls_context,json=hiddenEnvoyDeprecatedTlsContext,proto3" json:"hidden_envoy_deprecated_tls_context,omitempty"`
// Deprecated: Do not use.
HiddenEnvoyDeprecatedExtensionProtocolOptions map[string]*_struct.Struct `protobuf:"bytes,35,rep,name=hidden_envoy_deprecated_extension_protocol_options,json=hiddenEnvoyDeprecatedExtensionProtocolOptions,proto3" json:"hidden_envoy_deprecated_extension_protocol_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Cluster) Reset() {
*x = Cluster{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_cluster_v3_cluster_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Cluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cluster) ProtoMessage() {}
func (x *Cluster) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_cluster_v3_cluster_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 Cluster.ProtoReflect.Descriptor instead.
func (*Cluster) Descriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{1}
}
func (x *Cluster) GetTransportSocketMatches() []*Cluster_TransportSocketMatch {
if x != nil {
return x.TransportSocketMatches
}
return nil
}
func (x *Cluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Cluster) GetAltStatName() string {
if x != nil {
return x.AltStatName
}
return ""
}
func (m *Cluster) GetClusterDiscoveryType() isCluster_ClusterDiscoveryType {
if m != nil {
return m.ClusterDiscoveryType
}
return nil
}
func (x *Cluster) GetType() Cluster_DiscoveryType {
if x, ok := x.GetClusterDiscoveryType().(*Cluster_Type); ok {
return x.Type
}
return Cluster_STATIC
}
func (x *Cluster) GetClusterType() *Cluster_CustomClusterType {
if x, ok := x.GetClusterDiscoveryType().(*Cluster_ClusterType); ok {
return x.ClusterType
}
return nil
}
func (x *Cluster) GetEdsClusterConfig() *Cluster_EdsClusterConfig {
if x != nil {
return x.EdsClusterConfig
}
return nil
}
func (x *Cluster) GetConnectTimeout() *duration.Duration {
if x != nil {
return x.ConnectTimeout
}
return nil
}
func (x *Cluster) GetPerConnectionBufferLimitBytes() *wrappers.UInt32Value {
if x != nil {
return x.PerConnectionBufferLimitBytes
}
return nil
}
func (x *Cluster) GetLbPolicy() Cluster_LbPolicy {
if x != nil {
return x.LbPolicy
}
return Cluster_ROUND_ROBIN
}
func (x *Cluster) GetLoadAssignment() *v3.ClusterLoadAssignment {
if x != nil {
return x.LoadAssignment
}
return nil
}
func (x *Cluster) GetHealthChecks() []*v31.HealthCheck {
if x != nil {
return x.HealthChecks
}
return nil
}
func (x *Cluster) GetMaxRequestsPerConnection() *wrappers.UInt32Value {
if x != nil {
return x.MaxRequestsPerConnection
}
return nil
}
func (x *Cluster) GetCircuitBreakers() *CircuitBreakers {
if x != nil {
return x.CircuitBreakers
}
return nil
}
func (x *Cluster) GetUpstreamHttpProtocolOptions() *v31.UpstreamHttpProtocolOptions {
if x != nil {
return x.UpstreamHttpProtocolOptions
}
return nil
}
func (x *Cluster) GetCommonHttpProtocolOptions() *v31.HttpProtocolOptions {
if x != nil {
return x.CommonHttpProtocolOptions
}
return nil
}
func (x *Cluster) GetHttpProtocolOptions() *v31.Http1ProtocolOptions {
if x != nil {
return x.HttpProtocolOptions
}
return nil
}
func (x *Cluster) GetHttp2ProtocolOptions() *v31.Http2ProtocolOptions {
if x != nil {
return x.Http2ProtocolOptions
}
return nil
}
func (x *Cluster) GetTypedExtensionProtocolOptions() map[string]*any.Any {
if x != nil {
return x.TypedExtensionProtocolOptions
}
return nil
}
func (x *Cluster) GetDnsRefreshRate() *duration.Duration {
if x != nil {
return x.DnsRefreshRate
}
return nil
}
func (x *Cluster) GetDnsFailureRefreshRate() *Cluster_RefreshRate {
if x != nil {
return x.DnsFailureRefreshRate
}
return nil
}
func (x *Cluster) GetRespectDnsTtl() bool {
if x != nil {
return x.RespectDnsTtl
}
return false
}
func (x *Cluster) GetDnsLookupFamily() Cluster_DnsLookupFamily {
if x != nil {
return x.DnsLookupFamily
}
return Cluster_AUTO
}
func (x *Cluster) GetDnsResolvers() []*v31.Address {
if x != nil {
return x.DnsResolvers
}
return nil
}
func (x *Cluster) GetUseTcpForDnsLookups() bool {
if x != nil {
return x.UseTcpForDnsLookups
}
return false
}
func (x *Cluster) GetOutlierDetection() *OutlierDetection {
if x != nil {
return x.OutlierDetection
}
return nil
}
func (x *Cluster) GetCleanupInterval() *duration.Duration {
if x != nil {
return x.CleanupInterval
}
return nil
}
func (x *Cluster) GetUpstreamBindConfig() *v31.BindConfig {
if x != nil {
return x.UpstreamBindConfig
}
return nil
}
func (x *Cluster) GetLbSubsetConfig() *Cluster_LbSubsetConfig {
if x != nil {
return x.LbSubsetConfig
}
return nil
}
func (m *Cluster) GetLbConfig() isCluster_LbConfig {
if m != nil {
return m.LbConfig
}
return nil
}
func (x *Cluster) GetRingHashLbConfig() *Cluster_RingHashLbConfig {
if x, ok := x.GetLbConfig().(*Cluster_RingHashLbConfig_); ok {
return x.RingHashLbConfig
}
return nil
}
func (x *Cluster) GetOriginalDstLbConfig() *Cluster_OriginalDstLbConfig {
if x, ok := x.GetLbConfig().(*Cluster_OriginalDstLbConfig_); ok {
return x.OriginalDstLbConfig
}
return nil
}
func (x *Cluster) GetLeastRequestLbConfig() *Cluster_LeastRequestLbConfig {
if x, ok := x.GetLbConfig().(*Cluster_LeastRequestLbConfig_); ok {
return x.LeastRequestLbConfig
}
return nil
}
func (x *Cluster) GetCommonLbConfig() *Cluster_CommonLbConfig {
if x != nil {
return x.CommonLbConfig
}
return nil
}
func (x *Cluster) GetTransportSocket() *v31.TransportSocket {
if x != nil {
return x.TransportSocket
}
return nil
}
func (x *Cluster) GetMetadata() *v31.Metadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *Cluster) GetProtocolSelection() Cluster_ClusterProtocolSelection {
if x != nil {
return x.ProtocolSelection
}
return Cluster_USE_CONFIGURED_PROTOCOL
}
func (x *Cluster) GetUpstreamConnectionOptions() *UpstreamConnectionOptions {
if x != nil {
return x.UpstreamConnectionOptions
}
return nil
}
func (x *Cluster) GetCloseConnectionsOnHostHealthFailure() bool {
if x != nil {
return x.CloseConnectionsOnHostHealthFailure
}
return false
}
func (x *Cluster) GetIgnoreHealthOnHostRemoval() bool {
if x != nil {
return x.IgnoreHealthOnHostRemoval
}
return false
}
func (x *Cluster) GetFilters() []*Filter {
if x != nil {
return x.Filters
}
return nil
}
func (x *Cluster) GetLoadBalancingPolicy() *LoadBalancingPolicy {
if x != nil {
return x.LoadBalancingPolicy
}
return nil
}
func (x *Cluster) GetLrsServer() *v31.ConfigSource {
if x != nil {
return x.LrsServer
}
return nil
}
func (x *Cluster) GetTrackTimeoutBudgets() bool {
if x != nil {
return x.TrackTimeoutBudgets
}
return false
}
func (x *Cluster) GetUpstreamConfig() *v31.TypedExtensionConfig {
if x != nil {
return x.UpstreamConfig
}
return nil
}
// Deprecated: Do not use.
func (x *Cluster) GetHiddenEnvoyDeprecatedHosts() []*v31.Address {
if x != nil {
return x.HiddenEnvoyDeprecatedHosts
}
return nil
}
// Deprecated: Do not use.
func (x *Cluster) GetHiddenEnvoyDeprecatedTlsContext() *v32.UpstreamTlsContext {
if x != nil {
return x.HiddenEnvoyDeprecatedTlsContext
}
return nil
}
// Deprecated: Do not use.
func (x *Cluster) GetHiddenEnvoyDeprecatedExtensionProtocolOptions() map[string]*_struct.Struct {
if x != nil {
return x.HiddenEnvoyDeprecatedExtensionProtocolOptions
}
return nil
}
type isCluster_ClusterDiscoveryType interface {
isCluster_ClusterDiscoveryType()
}
type Cluster_Type struct {
Type Cluster_DiscoveryType `protobuf:"varint,2,opt,name=type,proto3,enum=envoy.config.cluster.v3.Cluster_DiscoveryType,oneof"`
}
type Cluster_ClusterType struct {
ClusterType *Cluster_CustomClusterType `protobuf:"bytes,38,opt,name=cluster_type,json=clusterType,proto3,oneof"`
}
func (*Cluster_Type) isCluster_ClusterDiscoveryType() {}
func (*Cluster_ClusterType) isCluster_ClusterDiscoveryType() {}
type isCluster_LbConfig interface {
isCluster_LbConfig()
}
type Cluster_RingHashLbConfig_ struct {
RingHashLbConfig *Cluster_RingHashLbConfig `protobuf:"bytes,23,opt,name=ring_hash_lb_config,json=ringHashLbConfig,proto3,oneof"`
}
type Cluster_OriginalDstLbConfig_ struct {
OriginalDstLbConfig *Cluster_OriginalDstLbConfig `protobuf:"bytes,34,opt,name=original_dst_lb_config,json=originalDstLbConfig,proto3,oneof"`
}
type Cluster_LeastRequestLbConfig_ struct {
LeastRequestLbConfig *Cluster_LeastRequestLbConfig `protobuf:"bytes,37,opt,name=least_request_lb_config,json=leastRequestLbConfig,proto3,oneof"`
}
func (*Cluster_RingHashLbConfig_) isCluster_LbConfig() {}
func (*Cluster_OriginalDstLbConfig_) isCluster_LbConfig() {}
func (*Cluster_LeastRequestLbConfig_) isCluster_LbConfig() {}
type LoadBalancingPolicy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Policies []*LoadBalancingPolicy_Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
}
func (x *LoadBalancingPolicy) Reset() {
*x = LoadBalancingPolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_cluster_v3_cluster_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoadBalancingPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadBalancingPolicy) ProtoMessage() {}
func (x *LoadBalancingPolicy) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_cluster_v3_cluster_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 LoadBalancingPolicy.ProtoReflect.Descriptor instead.
func (*LoadBalancingPolicy) Descriptor() ([]byte, []int) {
return file_envoy_config_cluster_v3_cluster_proto_rawDescGZIP(), []int{2}
}
func (x *LoadBalancingPolicy) GetPolicies() []*LoadBalancingPolicy_Policy {
if x != nil {
return x.Policies
}
return nil
}
type UpstreamBindConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SourceAddress *v31.Address `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
}
func (x *UpstreamBindConfig) Reset() {
*x = UpstreamBindConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_cluster_v3_cluster_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpstreamBindConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpstreamBindConfig) ProtoMessage() {}
func (x *UpstreamBindConfig) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_cluster_v3_cluster_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)