forked from envoyproxy/go-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.pb.go
3469 lines (3357 loc) · 92.1 KB
/
bootstrap.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: envoy/config/bootstrap/v2/bootstrap.proto
package v2
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import v23 "github.com/envoyproxy/go-control-plane/envoy/api/v2"
import auth "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth"
import core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
import v2 "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v2"
import v2alpha "github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha"
import v22 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v2"
import v21 "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2"
import _ "github.com/gogo/protobuf/gogoproto"
import types "github.com/gogo/protobuf/types"
import _ "github.com/lyft/protoc-gen-validate/validate"
import time "time"
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// Bootstrap :ref:`configuration overview <config_overview_v2_bootstrap>`.
type Bootstrap struct {
// Node identity to present to the management server and for instance
// identification purposes (e.g. in generated headers).
Node *core.Node `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
// Statically specified resources.
StaticResources *Bootstrap_StaticResources `protobuf:"bytes,2,opt,name=static_resources,json=staticResources" json:"static_resources,omitempty"`
// xDS configuration sources.
DynamicResources *Bootstrap_DynamicResources `protobuf:"bytes,3,opt,name=dynamic_resources,json=dynamicResources" json:"dynamic_resources,omitempty"`
// Configuration for the cluster manager which owns all upstream clusters
// within the server.
ClusterManager *ClusterManager `protobuf:"bytes,4,opt,name=cluster_manager,json=clusterManager" json:"cluster_manager,omitempty"`
// Health discovery service config option.
// (:ref:`core.ApiConfigSource <envoy_api_msg_core.ApiConfigSource>`)
HdsConfig *core.ApiConfigSource `protobuf:"bytes,14,opt,name=hds_config,json=hdsConfig" json:"hds_config,omitempty"`
// Optional file system path to search for startup flag files.
FlagsPath string `protobuf:"bytes,5,opt,name=flags_path,json=flagsPath,proto3" json:"flags_path,omitempty"`
// Optional set of stats sinks.
StatsSinks []*v2.StatsSink `protobuf:"bytes,6,rep,name=stats_sinks,json=statsSinks" json:"stats_sinks,omitempty"`
// Configuration for internal processing of stats.
StatsConfig *v2.StatsConfig `protobuf:"bytes,13,opt,name=stats_config,json=statsConfig" json:"stats_config,omitempty"`
// Optional duration between flushes to configured stats sinks. For
// performance reasons Envoy latches counters and only flushes counters and
// gauges at a periodic interval. If not specified the default is 5000ms (5
// seconds).
StatsFlushInterval *time.Duration `protobuf:"bytes,7,opt,name=stats_flush_interval,json=statsFlushInterval,stdduration" json:"stats_flush_interval,omitempty"`
// Optional watchdog configuration.
Watchdog *Watchdog `protobuf:"bytes,8,opt,name=watchdog" json:"watchdog,omitempty"`
// Configuration for an external tracing provider. If not specified, no
// tracing will be performed.
Tracing *v21.Tracing `protobuf:"bytes,9,opt,name=tracing" json:"tracing,omitempty"`
// Configuration for an external rate limit service provider. If not
// specified, any calls to the rate limit service will immediately return
// success.
RateLimitService *v22.RateLimitServiceConfig `protobuf:"bytes,10,opt,name=rate_limit_service,json=rateLimitService" json:"rate_limit_service,omitempty"`
// Configuration for the runtime configuration provider. If not specified, a
// “null” provider will be used which will result in all defaults being used.
Runtime *Runtime `protobuf:"bytes,11,opt,name=runtime" json:"runtime,omitempty"`
// Configuration for the local administration HTTP server.
Admin Admin `protobuf:"bytes,12,opt,name=admin" json:"admin"`
// Optional overload manager configuration.
OverloadManager *v2alpha.OverloadManager `protobuf:"bytes,15,opt,name=overload_manager,json=overloadManager" json:"overload_manager,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bootstrap) Reset() { *m = Bootstrap{} }
func (m *Bootstrap) String() string { return proto.CompactTextString(m) }
func (*Bootstrap) ProtoMessage() {}
func (*Bootstrap) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{0}
}
func (m *Bootstrap) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Bootstrap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Bootstrap.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Bootstrap) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap.Merge(dst, src)
}
func (m *Bootstrap) XXX_Size() int {
return m.Size()
}
func (m *Bootstrap) XXX_DiscardUnknown() {
xxx_messageInfo_Bootstrap.DiscardUnknown(m)
}
var xxx_messageInfo_Bootstrap proto.InternalMessageInfo
func (m *Bootstrap) GetNode() *core.Node {
if m != nil {
return m.Node
}
return nil
}
func (m *Bootstrap) GetStaticResources() *Bootstrap_StaticResources {
if m != nil {
return m.StaticResources
}
return nil
}
func (m *Bootstrap) GetDynamicResources() *Bootstrap_DynamicResources {
if m != nil {
return m.DynamicResources
}
return nil
}
func (m *Bootstrap) GetClusterManager() *ClusterManager {
if m != nil {
return m.ClusterManager
}
return nil
}
func (m *Bootstrap) GetHdsConfig() *core.ApiConfigSource {
if m != nil {
return m.HdsConfig
}
return nil
}
func (m *Bootstrap) GetFlagsPath() string {
if m != nil {
return m.FlagsPath
}
return ""
}
func (m *Bootstrap) GetStatsSinks() []*v2.StatsSink {
if m != nil {
return m.StatsSinks
}
return nil
}
func (m *Bootstrap) GetStatsConfig() *v2.StatsConfig {
if m != nil {
return m.StatsConfig
}
return nil
}
func (m *Bootstrap) GetStatsFlushInterval() *time.Duration {
if m != nil {
return m.StatsFlushInterval
}
return nil
}
func (m *Bootstrap) GetWatchdog() *Watchdog {
if m != nil {
return m.Watchdog
}
return nil
}
func (m *Bootstrap) GetTracing() *v21.Tracing {
if m != nil {
return m.Tracing
}
return nil
}
func (m *Bootstrap) GetRateLimitService() *v22.RateLimitServiceConfig {
if m != nil {
return m.RateLimitService
}
return nil
}
func (m *Bootstrap) GetRuntime() *Runtime {
if m != nil {
return m.Runtime
}
return nil
}
func (m *Bootstrap) GetAdmin() Admin {
if m != nil {
return m.Admin
}
return Admin{}
}
func (m *Bootstrap) GetOverloadManager() *v2alpha.OverloadManager {
if m != nil {
return m.OverloadManager
}
return nil
}
type Bootstrap_StaticResources struct {
// Static :ref:`Listeners <envoy_api_msg_Listener>`. These listeners are
// available regardless of LDS configuration.
Listeners []v23.Listener `protobuf:"bytes,1,rep,name=listeners" json:"listeners"`
// If a network based configuration source is specified for :ref:`cds_config
// <envoy_api_field_config.bootstrap.v2.Bootstrap.DynamicResources.cds_config>`, it's necessary
// to have some initial cluster definitions available to allow Envoy to know
// how to speak to the management server. These cluster definitions may not
// use :ref:`EDS <arch_overview_dynamic_config_sds>` (i.e. they should be static
// IP or DNS-based).
Clusters []v23.Cluster `protobuf:"bytes,2,rep,name=clusters" json:"clusters"`
// [#not-implemented-hide:]
Secrets []auth.Secret `protobuf:"bytes,3,rep,name=secrets" json:"secrets"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bootstrap_StaticResources) Reset() { *m = Bootstrap_StaticResources{} }
func (m *Bootstrap_StaticResources) String() string { return proto.CompactTextString(m) }
func (*Bootstrap_StaticResources) ProtoMessage() {}
func (*Bootstrap_StaticResources) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{0, 0}
}
func (m *Bootstrap_StaticResources) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Bootstrap_StaticResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Bootstrap_StaticResources.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Bootstrap_StaticResources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap_StaticResources.Merge(dst, src)
}
func (m *Bootstrap_StaticResources) XXX_Size() int {
return m.Size()
}
func (m *Bootstrap_StaticResources) XXX_DiscardUnknown() {
xxx_messageInfo_Bootstrap_StaticResources.DiscardUnknown(m)
}
var xxx_messageInfo_Bootstrap_StaticResources proto.InternalMessageInfo
func (m *Bootstrap_StaticResources) GetListeners() []v23.Listener {
if m != nil {
return m.Listeners
}
return nil
}
func (m *Bootstrap_StaticResources) GetClusters() []v23.Cluster {
if m != nil {
return m.Clusters
}
return nil
}
func (m *Bootstrap_StaticResources) GetSecrets() []auth.Secret {
if m != nil {
return m.Secrets
}
return nil
}
type Bootstrap_DynamicResources struct {
// All :ref:`Listeners <envoy_api_msg_Listener>` are provided by a single
// :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
LdsConfig *core.ConfigSource `protobuf:"bytes,1,opt,name=lds_config,json=ldsConfig" json:"lds_config,omitempty"`
// All post-bootstrap :ref:`Cluster <envoy_api_msg_Cluster>` definitions are
// provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
// configuration source.
CdsConfig *core.ConfigSource `protobuf:"bytes,2,opt,name=cds_config,json=cdsConfig" json:"cds_config,omitempty"`
// A single :ref:`ADS <config_overview_v2_ads>` source may be optionally
// specified. This must have :ref:`api_type
// <envoy_api_field_core.ApiConfigSource.api_type>` :ref:`GRPC
// <envoy_api_enum_value_core.ApiConfigSource.ApiType.GRPC>`. Only
// :ref:`ConfigSources <envoy_api_msg_core.ConfigSource>` that have
// the :ref:`ads <envoy_api_field_core.ConfigSource.ads>` field set will be
// streamed on the ADS channel.
AdsConfig *core.ApiConfigSource `protobuf:"bytes,3,opt,name=ads_config,json=adsConfig" json:"ads_config,omitempty"`
// [#not-implemented-hide:] Hide from docs.
DeprecatedV1 *Bootstrap_DynamicResources_DeprecatedV1 `protobuf:"bytes,4,opt,name=deprecated_v1,json=deprecatedV1" json:"deprecated_v1,omitempty"` // Deprecated: Do not use.
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bootstrap_DynamicResources) Reset() { *m = Bootstrap_DynamicResources{} }
func (m *Bootstrap_DynamicResources) String() string { return proto.CompactTextString(m) }
func (*Bootstrap_DynamicResources) ProtoMessage() {}
func (*Bootstrap_DynamicResources) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{0, 1}
}
func (m *Bootstrap_DynamicResources) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Bootstrap_DynamicResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Bootstrap_DynamicResources.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Bootstrap_DynamicResources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap_DynamicResources.Merge(dst, src)
}
func (m *Bootstrap_DynamicResources) XXX_Size() int {
return m.Size()
}
func (m *Bootstrap_DynamicResources) XXX_DiscardUnknown() {
xxx_messageInfo_Bootstrap_DynamicResources.DiscardUnknown(m)
}
var xxx_messageInfo_Bootstrap_DynamicResources proto.InternalMessageInfo
func (m *Bootstrap_DynamicResources) GetLdsConfig() *core.ConfigSource {
if m != nil {
return m.LdsConfig
}
return nil
}
func (m *Bootstrap_DynamicResources) GetCdsConfig() *core.ConfigSource {
if m != nil {
return m.CdsConfig
}
return nil
}
func (m *Bootstrap_DynamicResources) GetAdsConfig() *core.ApiConfigSource {
if m != nil {
return m.AdsConfig
}
return nil
}
// Deprecated: Do not use.
func (m *Bootstrap_DynamicResources) GetDeprecatedV1() *Bootstrap_DynamicResources_DeprecatedV1 {
if m != nil {
return m.DeprecatedV1
}
return nil
}
// [#not-implemented-hide:] Hide from docs.
type Bootstrap_DynamicResources_DeprecatedV1 struct {
// This is the global :ref:`SDS <arch_overview_dynamic_config_sds>` config
// when using v1 REST for :ref:`CDS
// <arch_overview_dynamic_config_cds>`/:ref:`EDS
// <arch_overview_dynamic_config_sds>`.
SdsConfig *core.ConfigSource `protobuf:"bytes,1,opt,name=sds_config,json=sdsConfig" json:"sds_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) Reset() {
*m = Bootstrap_DynamicResources_DeprecatedV1{}
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) String() string { return proto.CompactTextString(m) }
func (*Bootstrap_DynamicResources_DeprecatedV1) ProtoMessage() {}
func (*Bootstrap_DynamicResources_DeprecatedV1) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{0, 1, 0}
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Bootstrap_DynamicResources_DeprecatedV1.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Bootstrap_DynamicResources_DeprecatedV1) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap_DynamicResources_DeprecatedV1.Merge(dst, src)
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) XXX_Size() int {
return m.Size()
}
func (m *Bootstrap_DynamicResources_DeprecatedV1) XXX_DiscardUnknown() {
xxx_messageInfo_Bootstrap_DynamicResources_DeprecatedV1.DiscardUnknown(m)
}
var xxx_messageInfo_Bootstrap_DynamicResources_DeprecatedV1 proto.InternalMessageInfo
func (m *Bootstrap_DynamicResources_DeprecatedV1) GetSdsConfig() *core.ConfigSource {
if m != nil {
return m.SdsConfig
}
return nil
}
// Administration interface :ref:`operations documentation
// <operations_admin_interface>`.
type Admin struct {
// The path to write the access log for the administration server. If no
// access log is desired specify ‘/dev/null’.
AccessLogPath string `protobuf:"bytes,1,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"`
// The cpu profiler output path for the administration server. If no profile
// path is specified, the default is ‘/var/log/envoy/envoy.prof’.
ProfilePath string `protobuf:"bytes,2,opt,name=profile_path,json=profilePath,proto3" json:"profile_path,omitempty"`
// The TCP address that the administration server will listen on.
Address core.Address `protobuf:"bytes,3,opt,name=address" json:"address"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Admin) Reset() { *m = Admin{} }
func (m *Admin) String() string { return proto.CompactTextString(m) }
func (*Admin) ProtoMessage() {}
func (*Admin) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{1}
}
func (m *Admin) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Admin.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Admin) XXX_Merge(src proto.Message) {
xxx_messageInfo_Admin.Merge(dst, src)
}
func (m *Admin) XXX_Size() int {
return m.Size()
}
func (m *Admin) XXX_DiscardUnknown() {
xxx_messageInfo_Admin.DiscardUnknown(m)
}
var xxx_messageInfo_Admin proto.InternalMessageInfo
func (m *Admin) GetAccessLogPath() string {
if m != nil {
return m.AccessLogPath
}
return ""
}
func (m *Admin) GetProfilePath() string {
if m != nil {
return m.ProfilePath
}
return ""
}
func (m *Admin) GetAddress() core.Address {
if m != nil {
return m.Address
}
return core.Address{}
}
// Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
type ClusterManager struct {
// Name of the local cluster (i.e., the cluster that owns the Envoy running
// this configuration). In order to enable :ref:`zone aware routing
// <arch_overview_load_balancing_zone_aware_routing>` this option must be set.
// If *local_cluster_name* is defined then :ref:`clusters
// <config_cluster_manager_clusters>` must be defined in the :ref:`Bootstrap
// static cluster resources
// <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`. This is unrelated to
// the :option:`--service-cluster` option which does not `affect zone aware
// routing <https://github.com/envoyproxy/envoy/issues/774>`_.
LocalClusterName string `protobuf:"bytes,1,opt,name=local_cluster_name,json=localClusterName,proto3" json:"local_cluster_name,omitempty"`
// Optional global configuration for outlier detection.
OutlierDetection *ClusterManager_OutlierDetection `protobuf:"bytes,2,opt,name=outlier_detection,json=outlierDetection" json:"outlier_detection,omitempty"`
// Optional configuration used to bind newly established upstream connections.
// This may be overridden on a per-cluster basis by upstream_bind_config in the cds_config.
UpstreamBindConfig *core.BindConfig `protobuf:"bytes,3,opt,name=upstream_bind_config,json=upstreamBindConfig" json:"upstream_bind_config,omitempty"`
// A management server endpoint to stream load stats to via
// *StreamLoadStats*. This must have :ref:`api_type
// <envoy_api_field_core.ApiConfigSource.api_type>` :ref:`GRPC
// <envoy_api_enum_value_core.ApiConfigSource.ApiType.GRPC>`.
LoadStatsConfig *core.ApiConfigSource `protobuf:"bytes,4,opt,name=load_stats_config,json=loadStatsConfig" json:"load_stats_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterManager) Reset() { *m = ClusterManager{} }
func (m *ClusterManager) String() string { return proto.CompactTextString(m) }
func (*ClusterManager) ProtoMessage() {}
func (*ClusterManager) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{2}
}
func (m *ClusterManager) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ClusterManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ClusterManager.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ClusterManager) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterManager.Merge(dst, src)
}
func (m *ClusterManager) XXX_Size() int {
return m.Size()
}
func (m *ClusterManager) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterManager.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterManager proto.InternalMessageInfo
func (m *ClusterManager) GetLocalClusterName() string {
if m != nil {
return m.LocalClusterName
}
return ""
}
func (m *ClusterManager) GetOutlierDetection() *ClusterManager_OutlierDetection {
if m != nil {
return m.OutlierDetection
}
return nil
}
func (m *ClusterManager) GetUpstreamBindConfig() *core.BindConfig {
if m != nil {
return m.UpstreamBindConfig
}
return nil
}
func (m *ClusterManager) GetLoadStatsConfig() *core.ApiConfigSource {
if m != nil {
return m.LoadStatsConfig
}
return nil
}
type ClusterManager_OutlierDetection struct {
// Specifies the path to the outlier event log.
EventLogPath string `protobuf:"bytes,1,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterManager_OutlierDetection) Reset() { *m = ClusterManager_OutlierDetection{} }
func (m *ClusterManager_OutlierDetection) String() string { return proto.CompactTextString(m) }
func (*ClusterManager_OutlierDetection) ProtoMessage() {}
func (*ClusterManager_OutlierDetection) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{2, 0}
}
func (m *ClusterManager_OutlierDetection) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ClusterManager_OutlierDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ClusterManager_OutlierDetection.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *ClusterManager_OutlierDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterManager_OutlierDetection.Merge(dst, src)
}
func (m *ClusterManager_OutlierDetection) XXX_Size() int {
return m.Size()
}
func (m *ClusterManager_OutlierDetection) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterManager_OutlierDetection.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterManager_OutlierDetection proto.InternalMessageInfo
func (m *ClusterManager_OutlierDetection) GetEventLogPath() string {
if m != nil {
return m.EventLogPath
}
return ""
}
// Envoy process watchdog configuration. When configured, this monitors for
// nonresponsive threads and kills the process after the configured thresholds.
type Watchdog struct {
// The duration after which Envoy counts a nonresponsive thread in the
// *server.watchdog_miss* statistic. If not specified the default is 200ms.
MissTimeout *types.Duration `protobuf:"bytes,1,opt,name=miss_timeout,json=missTimeout" json:"miss_timeout,omitempty"`
// The duration after which Envoy counts a nonresponsive thread in the
// *server.watchdog_mega_miss* statistic. If not specified the default is
// 1000ms.
MegamissTimeout *types.Duration `protobuf:"bytes,2,opt,name=megamiss_timeout,json=megamissTimeout" json:"megamiss_timeout,omitempty"`
// If a watched thread has been nonresponsive for this duration, assume a
// programming error and kill the entire Envoy process. Set to 0 to disable
// kill behavior. If not specified the default is 0 (disabled).
KillTimeout *types.Duration `protobuf:"bytes,3,opt,name=kill_timeout,json=killTimeout" json:"kill_timeout,omitempty"`
// If at least two watched threads have been nonresponsive for at least this
// duration assume a true deadlock and kill the entire Envoy process. Set to 0
// to disable this behavior. If not specified the default is 0 (disabled).
MultikillTimeout *types.Duration `protobuf:"bytes,4,opt,name=multikill_timeout,json=multikillTimeout" json:"multikill_timeout,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Watchdog) Reset() { *m = Watchdog{} }
func (m *Watchdog) String() string { return proto.CompactTextString(m) }
func (*Watchdog) ProtoMessage() {}
func (*Watchdog) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{3}
}
func (m *Watchdog) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Watchdog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Watchdog.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Watchdog) XXX_Merge(src proto.Message) {
xxx_messageInfo_Watchdog.Merge(dst, src)
}
func (m *Watchdog) XXX_Size() int {
return m.Size()
}
func (m *Watchdog) XXX_DiscardUnknown() {
xxx_messageInfo_Watchdog.DiscardUnknown(m)
}
var xxx_messageInfo_Watchdog proto.InternalMessageInfo
func (m *Watchdog) GetMissTimeout() *types.Duration {
if m != nil {
return m.MissTimeout
}
return nil
}
func (m *Watchdog) GetMegamissTimeout() *types.Duration {
if m != nil {
return m.MegamissTimeout
}
return nil
}
func (m *Watchdog) GetKillTimeout() *types.Duration {
if m != nil {
return m.KillTimeout
}
return nil
}
func (m *Watchdog) GetMultikillTimeout() *types.Duration {
if m != nil {
return m.MultikillTimeout
}
return nil
}
// Runtime :ref:`configuration overview <config_runtime>`.
type Runtime struct {
// The implementation assumes that the file system tree is accessed via a
// symbolic link. An atomic link swap is used when a new tree should be
// switched to. This parameter specifies the path to the symbolic link. Envoy
// will watch the location for changes and reload the file system tree when
// they happen.
SymlinkRoot string `protobuf:"bytes,1,opt,name=symlink_root,json=symlinkRoot,proto3" json:"symlink_root,omitempty"`
// Specifies the subdirectory to load within the root directory. This is
// useful if multiple systems share the same delivery mechanism. Envoy
// configuration elements can be contained in a dedicated subdirectory.
Subdirectory string `protobuf:"bytes,2,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"`
// Specifies an optional subdirectory to load within the root directory. If
// specified and the directory exists, configuration values within this
// directory will override those found in the primary subdirectory. This is
// useful when Envoy is deployed across many different types of servers.
// Sometimes it is useful to have a per service cluster directory for runtime
// configuration. See below for exactly how the override directory is used.
OverrideSubdirectory string `protobuf:"bytes,3,opt,name=override_subdirectory,json=overrideSubdirectory,proto3" json:"override_subdirectory,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Runtime) Reset() { *m = Runtime{} }
func (m *Runtime) String() string { return proto.CompactTextString(m) }
func (*Runtime) ProtoMessage() {}
func (*Runtime) Descriptor() ([]byte, []int) {
return fileDescriptor_bootstrap_afd983df223cd175, []int{4}
}
func (m *Runtime) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Runtime.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Runtime) XXX_Merge(src proto.Message) {
xxx_messageInfo_Runtime.Merge(dst, src)
}
func (m *Runtime) XXX_Size() int {
return m.Size()
}
func (m *Runtime) XXX_DiscardUnknown() {
xxx_messageInfo_Runtime.DiscardUnknown(m)
}
var xxx_messageInfo_Runtime proto.InternalMessageInfo
func (m *Runtime) GetSymlinkRoot() string {
if m != nil {
return m.SymlinkRoot
}
return ""
}
func (m *Runtime) GetSubdirectory() string {
if m != nil {
return m.Subdirectory
}
return ""
}
func (m *Runtime) GetOverrideSubdirectory() string {
if m != nil {
return m.OverrideSubdirectory
}
return ""
}
func init() {
proto.RegisterType((*Bootstrap)(nil), "envoy.config.bootstrap.v2.Bootstrap")
proto.RegisterType((*Bootstrap_StaticResources)(nil), "envoy.config.bootstrap.v2.Bootstrap.StaticResources")
proto.RegisterType((*Bootstrap_DynamicResources)(nil), "envoy.config.bootstrap.v2.Bootstrap.DynamicResources")
proto.RegisterType((*Bootstrap_DynamicResources_DeprecatedV1)(nil), "envoy.config.bootstrap.v2.Bootstrap.DynamicResources.DeprecatedV1")
proto.RegisterType((*Admin)(nil), "envoy.config.bootstrap.v2.Admin")
proto.RegisterType((*ClusterManager)(nil), "envoy.config.bootstrap.v2.ClusterManager")
proto.RegisterType((*ClusterManager_OutlierDetection)(nil), "envoy.config.bootstrap.v2.ClusterManager.OutlierDetection")
proto.RegisterType((*Watchdog)(nil), "envoy.config.bootstrap.v2.Watchdog")
proto.RegisterType((*Runtime)(nil), "envoy.config.bootstrap.v2.Runtime")
}
func (m *Bootstrap) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Bootstrap) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Node != nil {
dAtA[i] = 0xa
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.Node.Size()))
n1, err := m.Node.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
}
if m.StaticResources != nil {
dAtA[i] = 0x12
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.StaticResources.Size()))
n2, err := m.StaticResources.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.DynamicResources != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.DynamicResources.Size()))
n3, err := m.DynamicResources.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
if m.ClusterManager != nil {
dAtA[i] = 0x22
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.ClusterManager.Size()))
n4, err := m.ClusterManager.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
if len(m.FlagsPath) > 0 {
dAtA[i] = 0x2a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(len(m.FlagsPath)))
i += copy(dAtA[i:], m.FlagsPath)
}
if len(m.StatsSinks) > 0 {
for _, msg := range m.StatsSinks {
dAtA[i] = 0x32
i++
i = encodeVarintBootstrap(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.StatsFlushInterval != nil {
dAtA[i] = 0x3a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StatsFlushInterval)))
n5, err := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StatsFlushInterval, dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
if m.Watchdog != nil {
dAtA[i] = 0x42
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.Watchdog.Size()))
n6, err := m.Watchdog.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
if m.Tracing != nil {
dAtA[i] = 0x4a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.Tracing.Size()))
n7, err := m.Tracing.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
}
if m.RateLimitService != nil {
dAtA[i] = 0x52
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.RateLimitService.Size()))
n8, err := m.RateLimitService.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
}
if m.Runtime != nil {
dAtA[i] = 0x5a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.Runtime.Size()))
n9, err := m.Runtime.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n9
}
dAtA[i] = 0x62
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.Admin.Size()))
n10, err := m.Admin.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
if m.StatsConfig != nil {
dAtA[i] = 0x6a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.StatsConfig.Size()))
n11, err := m.StatsConfig.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n11
}
if m.HdsConfig != nil {
dAtA[i] = 0x72
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.HdsConfig.Size()))
n12, err := m.HdsConfig.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n12
}
if m.OverloadManager != nil {
dAtA[i] = 0x7a
i++
i = encodeVarintBootstrap(dAtA, i, uint64(m.OverloadManager.Size()))
n13, err := m.OverloadManager.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n13
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Bootstrap_StaticResources) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Bootstrap_StaticResources) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Listeners) > 0 {
for _, msg := range m.Listeners {
dAtA[i] = 0xa
i++
i = encodeVarintBootstrap(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])