-
Notifications
You must be signed in to change notification settings - Fork 681
/
bootstrap.pb.go
5297 lines (5122 loc) · 138 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/v3/bootstrap.proto
package envoy_config_bootstrap_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/datawire/ambassador/pkg/api/envoy/annotations"
v35 "github.com/datawire/ambassador/pkg/api/envoy/config/cluster/v3"
v3 "github.com/datawire/ambassador/pkg/api/envoy/config/core/v3"
v34 "github.com/datawire/ambassador/pkg/api/envoy/config/listener/v3"
v31 "github.com/datawire/ambassador/pkg/api/envoy/config/metrics/v3"
v33 "github.com/datawire/ambassador/pkg/api/envoy/config/overload/v3"
v32 "github.com/datawire/ambassador/pkg/api/envoy/config/trace/v3"
v36 "github.com/datawire/ambassador/pkg/api/envoy/extensions/transport_sockets/tls/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Bootstrap :ref:`configuration overview <config_overview_bootstrap>`.
// [#next-free-field: 21]
type Bootstrap struct {
// Node identity to present to the management server and for instance
// identification purposes (e.g. in generated headers).
Node *v3.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// Statically specified resources.
StaticResources *Bootstrap_StaticResources `protobuf:"bytes,2,opt,name=static_resources,json=staticResources,proto3" json:"static_resources,omitempty"`
// xDS configuration sources.
DynamicResources *Bootstrap_DynamicResources `protobuf:"bytes,3,opt,name=dynamic_resources,json=dynamicResources,proto3" 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,proto3" json:"cluster_manager,omitempty"`
// Health discovery service config option.
// (:ref:`core.ApiConfigSource <envoy_api_msg_config.core.v3.ApiConfigSource>`)
HdsConfig *v3.ApiConfigSource `protobuf:"bytes,14,opt,name=hds_config,json=hdsConfig,proto3" 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 []*v31.StatsSink `protobuf:"bytes,6,rep,name=stats_sinks,json=statsSinks,proto3" json:"stats_sinks,omitempty"`
// Configuration for internal processing of stats.
StatsConfig *v31.StatsConfig `protobuf:"bytes,13,opt,name=stats_config,json=statsConfig,proto3" 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).
// Duration must be at least 1ms and at most 5 min.
StatsFlushInterval *types.Duration `protobuf:"bytes,7,opt,name=stats_flush_interval,json=statsFlushInterval,proto3" json:"stats_flush_interval,omitempty"`
// Optional watchdog configuration.
Watchdog *Watchdog `protobuf:"bytes,8,opt,name=watchdog,proto3" json:"watchdog,omitempty"`
// Configuration for an external tracing provider. If not specified, no
// tracing will be performed.
Tracing *v32.Tracing `protobuf:"bytes,9,opt,name=tracing,proto3" json:"tracing,omitempty"`
// Configuration for the runtime configuration provider. If not
// specified, a “null” provider will be used which will result in all defaults
// being used.
LayeredRuntime *LayeredRuntime `protobuf:"bytes,17,opt,name=layered_runtime,json=layeredRuntime,proto3" json:"layered_runtime,omitempty"`
// Configuration for the local administration HTTP server.
Admin *Admin `protobuf:"bytes,12,opt,name=admin,proto3" json:"admin,omitempty"`
// Optional overload manager configuration.
OverloadManager *v33.OverloadManager `protobuf:"bytes,15,opt,name=overload_manager,json=overloadManager,proto3" json:"overload_manager,omitempty"`
// Enable :ref:`stats for event dispatcher <operations_performance>`, defaults to false.
// Note that this records a value for each iteration of the event loop on every thread. This
// should normally be minimal overhead, but when using
// :ref:`statsd <envoy_api_msg_config.metrics.v3.StatsdSink>`, it will send each observed value
// over the wire individually because the statsd protocol doesn't have any way to represent a
// histogram summary. Be aware that this can be a very large volume of data.
EnableDispatcherStats bool `protobuf:"varint,16,opt,name=enable_dispatcher_stats,json=enableDispatcherStats,proto3" json:"enable_dispatcher_stats,omitempty"`
// Optional string which will be used in lieu of x-envoy in prefixing headers.
//
// For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
// transformed into x-foo-retry-on etc.
//
// Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
// headers Envoy will trust for core code and core extensions only. Be VERY careful making
// changes to this string, especially in multi-layer Envoy deployments or deployments using
// extensions which are not upstream.
HeaderPrefix string `protobuf:"bytes,18,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"`
// Optional proxy version which will be used to set the value of :ref:`server.version statistic
// <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
// :ref:`stats sinks <envoy_api_msg_config.metrics.v3.StatsSink>`.
StatsServerVersionOverride *types.UInt64Value `protobuf:"bytes,19,opt,name=stats_server_version_override,json=statsServerVersionOverride,proto3" json:"stats_server_version_override,omitempty"`
// Always use TCP queries instead of UDP queries for DNS lookups.
// This may be overridden on a per-cluster basis in cds_config,
// when :ref:`dns_resolvers <envoy_api_field_config.cluster.v3.Cluster.dns_resolvers>` and
// :ref:`use_tcp_for_dns_lookups <envoy_api_field_config.cluster.v3.Cluster.use_tcp_for_dns_lookups>` are
// specified.
UseTcpForDnsLookups bool `protobuf:"varint,20,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Bootstrap) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap.Merge(m, 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() *v3.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() *v3.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() []*v31.StatsSink {
if m != nil {
return m.StatsSinks
}
return nil
}
func (m *Bootstrap) GetStatsConfig() *v31.StatsConfig {
if m != nil {
return m.StatsConfig
}
return nil
}
func (m *Bootstrap) GetStatsFlushInterval() *types.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() *v32.Tracing {
if m != nil {
return m.Tracing
}
return nil
}
func (m *Bootstrap) GetLayeredRuntime() *LayeredRuntime {
if m != nil {
return m.LayeredRuntime
}
return nil
}
func (m *Bootstrap) GetAdmin() *Admin {
if m != nil {
return m.Admin
}
return nil
}
func (m *Bootstrap) GetOverloadManager() *v33.OverloadManager {
if m != nil {
return m.OverloadManager
}
return nil
}
func (m *Bootstrap) GetEnableDispatcherStats() bool {
if m != nil {
return m.EnableDispatcherStats
}
return false
}
func (m *Bootstrap) GetHeaderPrefix() string {
if m != nil {
return m.HeaderPrefix
}
return ""
}
func (m *Bootstrap) GetStatsServerVersionOverride() *types.UInt64Value {
if m != nil {
return m.StatsServerVersionOverride
}
return nil
}
func (m *Bootstrap) GetUseTcpForDnsLookups() bool {
if m != nil {
return m.UseTcpForDnsLookups
}
return false
}
type Bootstrap_StaticResources struct {
// Static :ref:`Listeners <envoy_api_msg_config.listener.v3.Listener>`. These listeners are
// available regardless of LDS configuration.
Listeners []*v34.Listener `protobuf:"bytes,1,rep,name=listeners,proto3" json:"listeners,omitempty"`
// If a network based configuration source is specified for :ref:`cds_config
// <envoy_api_field_config.bootstrap.v3.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_eds>` (i.e. they should be static
// IP or DNS-based).
Clusters []*v35.Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"`
// These static secrets can be used by :ref:`SdsSecretConfig
// <envoy_api_msg_extensions.transport_sockets.tls.v3.SdsSecretConfig>`
Secrets []*v36.Secret `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty"`
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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Bootstrap_StaticResources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap_StaticResources.Merge(m, 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() []*v34.Listener {
if m != nil {
return m.Listeners
}
return nil
}
func (m *Bootstrap_StaticResources) GetClusters() []*v35.Cluster {
if m != nil {
return m.Clusters
}
return nil
}
func (m *Bootstrap_StaticResources) GetSecrets() []*v36.Secret {
if m != nil {
return m.Secrets
}
return nil
}
type Bootstrap_DynamicResources struct {
// All :ref:`Listeners <envoy_api_msg_config.listener.v3.Listener>` are provided by a single
// :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
LdsConfig *v3.ConfigSource `protobuf:"bytes,1,opt,name=lds_config,json=ldsConfig,proto3" json:"lds_config,omitempty"`
// All post-bootstrap :ref:`Cluster <envoy_api_msg_config.cluster.v3.Cluster>` definitions are
// provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
// configuration source.
CdsConfig *v3.ConfigSource `protobuf:"bytes,2,opt,name=cds_config,json=cdsConfig,proto3" json:"cds_config,omitempty"`
// A single :ref:`ADS <config_overview_ads>` source may be optionally
// specified. This must have :ref:`api_type
// <envoy_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
// <envoy_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
// :ref:`ConfigSources <envoy_api_msg_config.core.v3.ConfigSource>` that have
// the :ref:`ads <envoy_api_field_config.core.v3.ConfigSource.ads>` field set will be
// streamed on the ADS channel.
AdsConfig *v3.ApiConfigSource `protobuf:"bytes,3,opt,name=ads_config,json=adsConfig,proto3" json:"ads_config,omitempty"`
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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Bootstrap_DynamicResources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap_DynamicResources.Merge(m, 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() *v3.ConfigSource {
if m != nil {
return m.LdsConfig
}
return nil
}
func (m *Bootstrap_DynamicResources) GetCdsConfig() *v3.ConfigSource {
if m != nil {
return m.CdsConfig
}
return nil
}
func (m *Bootstrap_DynamicResources) GetAdsConfig() *v3.ApiConfigSource {
if m != nil {
return m.AdsConfig
}
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’. This is only required if
// :ref:`address <envoy_api_field_config.bootstrap.v3.Admin.address>` is set.
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.
// If not specified, Envoy will not start an administration server.
Address *v3.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
// Additional socket options that may not be present in Envoy source code or
// precompiled binaries.
SocketOptions []*v3.SocketOption `protobuf:"bytes,4,rep,name=socket_options,json=socketOptions,proto3" json:"socket_options,omitempty"`
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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Admin) XXX_Merge(src proto.Message) {
xxx_messageInfo_Admin.Merge(m, 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() *v3.Address {
if m != nil {
return m.Address
}
return nil
}
func (m *Admin) GetSocketOptions() []*v3.SocketOption {
if m != nil {
return m.SocketOptions
}
return nil
}
// 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
// <envoy_api_msg_config.cluster.v3.Cluster>` must be defined in the :ref:`Bootstrap
// static cluster resources
// <envoy_api_field_config.bootstrap.v3.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,proto3" 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 *v3.BindConfig `protobuf:"bytes,3,opt,name=upstream_bind_config,json=upstreamBindConfig,proto3" 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_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
// <envoy_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
LoadStatsConfig *v3.ApiConfigSource `protobuf:"bytes,4,opt,name=load_stats_config,json=loadStatsConfig,proto3" 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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ClusterManager) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterManager.Merge(m, 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() *v3.BindConfig {
if m != nil {
return m.UpstreamBindConfig
}
return nil
}
func (m *ClusterManager) GetLoadStatsConfig() *v3.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"`
// [#not-implemented-hide:]
// The gRPC service for the outlier detection event service.
// If empty, outlier detection events won't be sent to a remote endpoint.
EventService *v3.EventServiceConfig `protobuf:"bytes,2,opt,name=event_service,json=eventService,proto3" json:"event_service,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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ClusterManager_OutlierDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterManager_OutlierDetection.Merge(m, 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 ""
}
func (m *ClusterManager_OutlierDetection) GetEventService() *v3.EventServiceConfig {
if m != nil {
return m.EventService
}
return nil
}
// Envoy process watchdog configuration. When configured, this monitors for
// nonresponsive threads and kills the process after the configured thresholds.
// See the :ref:`watchdog documentation <operations_performance_watchdog>` for more information.
type Watchdog struct {
// The duration after which Envoy counts a nonresponsive thread in the
// *watchdog_miss* statistic. If not specified the default is 200ms.
MissTimeout *types.Duration `protobuf:"bytes,1,opt,name=miss_timeout,json=missTimeout,proto3" json:"miss_timeout,omitempty"`
// The duration after which Envoy counts a nonresponsive thread in the
// *watchdog_mega_miss* statistic. If not specified the default is
// 1000ms.
MegamissTimeout *types.Duration `protobuf:"bytes,2,opt,name=megamiss_timeout,json=megamissTimeout,proto3" 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,proto3" 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,proto3" 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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Watchdog) XXX_Merge(src proto.Message) {
xxx_messageInfo_Watchdog.Merge(m, 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>` (deprecated).
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. If this parameter is not set, there will be no disk based
// runtime.
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"`
// Static base runtime. This will be :ref:`overridden
// <config_runtime_layering>` by other runtime layers, e.g.
// disk or admin. This follows the :ref:`runtime protobuf JSON representation
// encoding <config_runtime_proto_json>`.
Base *types.Struct `protobuf:"bytes,4,opt,name=base,proto3" json:"base,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_ccaa5ae7dd0aa495, []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.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Runtime) XXX_Merge(src proto.Message) {
xxx_messageInfo_Runtime.Merge(m, 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 (m *Runtime) GetBase() *types.Struct {
if m != nil {
return m.Base
}
return nil
}
// [#next-free-field: 6]
type RuntimeLayer struct {
// Descriptive name for the runtime layer. This is only used for the runtime
// :http:get:`/runtime` output.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to LayerSpecifier:
// *RuntimeLayer_StaticLayer
// *RuntimeLayer_DiskLayer_
// *RuntimeLayer_AdminLayer_
// *RuntimeLayer_RtdsLayer_
LayerSpecifier isRuntimeLayer_LayerSpecifier `protobuf_oneof:"layer_specifier"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeLayer) Reset() { *m = RuntimeLayer{} }
func (m *RuntimeLayer) String() string { return proto.CompactTextString(m) }
func (*RuntimeLayer) ProtoMessage() {}
func (*RuntimeLayer) Descriptor() ([]byte, []int) {
return fileDescriptor_ccaa5ae7dd0aa495, []int{5}
}
func (m *RuntimeLayer) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RuntimeLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RuntimeLayer.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RuntimeLayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeLayer.Merge(m, src)
}
func (m *RuntimeLayer) XXX_Size() int {
return m.Size()
}
func (m *RuntimeLayer) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeLayer.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeLayer proto.InternalMessageInfo
type isRuntimeLayer_LayerSpecifier interface {
isRuntimeLayer_LayerSpecifier()
MarshalTo([]byte) (int, error)
Size() int
}
type RuntimeLayer_StaticLayer struct {
StaticLayer *types.Struct `protobuf:"bytes,2,opt,name=static_layer,json=staticLayer,proto3,oneof" json:"static_layer,omitempty"`
}
type RuntimeLayer_DiskLayer_ struct {
DiskLayer *RuntimeLayer_DiskLayer `protobuf:"bytes,3,opt,name=disk_layer,json=diskLayer,proto3,oneof" json:"disk_layer,omitempty"`
}
type RuntimeLayer_AdminLayer_ struct {
AdminLayer *RuntimeLayer_AdminLayer `protobuf:"bytes,4,opt,name=admin_layer,json=adminLayer,proto3,oneof" json:"admin_layer,omitempty"`
}
type RuntimeLayer_RtdsLayer_ struct {
RtdsLayer *RuntimeLayer_RtdsLayer `protobuf:"bytes,5,opt,name=rtds_layer,json=rtdsLayer,proto3,oneof" json:"rtds_layer,omitempty"`
}
func (*RuntimeLayer_StaticLayer) isRuntimeLayer_LayerSpecifier() {}
func (*RuntimeLayer_DiskLayer_) isRuntimeLayer_LayerSpecifier() {}
func (*RuntimeLayer_AdminLayer_) isRuntimeLayer_LayerSpecifier() {}
func (*RuntimeLayer_RtdsLayer_) isRuntimeLayer_LayerSpecifier() {}
func (m *RuntimeLayer) GetLayerSpecifier() isRuntimeLayer_LayerSpecifier {
if m != nil {
return m.LayerSpecifier
}
return nil
}
func (m *RuntimeLayer) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *RuntimeLayer) GetStaticLayer() *types.Struct {
if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_StaticLayer); ok {
return x.StaticLayer
}
return nil
}
func (m *RuntimeLayer) GetDiskLayer() *RuntimeLayer_DiskLayer {
if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_DiskLayer_); ok {
return x.DiskLayer
}
return nil
}
func (m *RuntimeLayer) GetAdminLayer() *RuntimeLayer_AdminLayer {
if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_AdminLayer_); ok {
return x.AdminLayer
}
return nil
}
func (m *RuntimeLayer) GetRtdsLayer() *RuntimeLayer_RtdsLayer {
if x, ok := m.GetLayerSpecifier().(*RuntimeLayer_RtdsLayer_); ok {
return x.RtdsLayer
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*RuntimeLayer) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RuntimeLayer_StaticLayer)(nil),
(*RuntimeLayer_DiskLayer_)(nil),
(*RuntimeLayer_AdminLayer_)(nil),
(*RuntimeLayer_RtdsLayer_)(nil),
}
}
// :ref:`Disk runtime <config_runtime_local_disk>` layer.
type RuntimeLayer_DiskLayer 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. See documentation on runtime :ref:`atomicity
// <config_runtime_atomicity>` for further details on how reloads are
// treated.
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,3,opt,name=subdirectory,proto3" json:"subdirectory,omitempty"`
// :ref:`Append <config_runtime_local_disk_service_cluster_subdirs>` the
// service cluster to the path under symlink root.
AppendServiceCluster bool `protobuf:"varint,2,opt,name=append_service_cluster,json=appendServiceCluster,proto3" json:"append_service_cluster,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeLayer_DiskLayer) Reset() { *m = RuntimeLayer_DiskLayer{} }
func (m *RuntimeLayer_DiskLayer) String() string { return proto.CompactTextString(m) }
func (*RuntimeLayer_DiskLayer) ProtoMessage() {}
func (*RuntimeLayer_DiskLayer) Descriptor() ([]byte, []int) {
return fileDescriptor_ccaa5ae7dd0aa495, []int{5, 0}
}
func (m *RuntimeLayer_DiskLayer) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RuntimeLayer_DiskLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RuntimeLayer_DiskLayer.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RuntimeLayer_DiskLayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeLayer_DiskLayer.Merge(m, src)
}
func (m *RuntimeLayer_DiskLayer) XXX_Size() int {
return m.Size()
}
func (m *RuntimeLayer_DiskLayer) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeLayer_DiskLayer.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeLayer_DiskLayer proto.InternalMessageInfo