/
bootstrap.pb.go
executable file
·2337 lines (2133 loc) · 112 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-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.10.1
// source: envoy/config/bootstrap/v3/bootstrap.proto
package envoy_config_bootstrap_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
v1 "github.com/cncf/udpa/go/udpa/core/v1"
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
v36 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
v35 "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
v31 "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v3"
v33 "github.com/envoyproxy/go-control-plane/envoy/config/overload/v3"
v32 "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3"
v37 "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3"
v34 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
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
// The events are fired in this order: KILL, MULTIKILL, MEGAMISS, MISS.
// Within an event type, actions execute in the order they are configured.
// For KILL/MULTIKILL there is a default PANIC that will run after the
// registered actions and kills the process if it wasn't already killed.
// It might be useful to specify several debug actions, and possibly an
// alternate FATAL action.
type Watchdog_WatchdogAction_WatchdogEvent int32
const (
Watchdog_WatchdogAction_UNKNOWN Watchdog_WatchdogAction_WatchdogEvent = 0
Watchdog_WatchdogAction_KILL Watchdog_WatchdogAction_WatchdogEvent = 1
Watchdog_WatchdogAction_MULTIKILL Watchdog_WatchdogAction_WatchdogEvent = 2
Watchdog_WatchdogAction_MEGAMISS Watchdog_WatchdogAction_WatchdogEvent = 3
Watchdog_WatchdogAction_MISS Watchdog_WatchdogAction_WatchdogEvent = 4
)
// Enum value maps for Watchdog_WatchdogAction_WatchdogEvent.
var (
Watchdog_WatchdogAction_WatchdogEvent_name = map[int32]string{
0: "UNKNOWN",
1: "KILL",
2: "MULTIKILL",
3: "MEGAMISS",
4: "MISS",
}
Watchdog_WatchdogAction_WatchdogEvent_value = map[string]int32{
"UNKNOWN": 0,
"KILL": 1,
"MULTIKILL": 2,
"MEGAMISS": 3,
"MISS": 4,
}
)
func (x Watchdog_WatchdogAction_WatchdogEvent) Enum() *Watchdog_WatchdogAction_WatchdogEvent {
p := new(Watchdog_WatchdogAction_WatchdogEvent)
*p = x
return p
}
func (x Watchdog_WatchdogAction_WatchdogEvent) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Watchdog_WatchdogAction_WatchdogEvent) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_bootstrap_v3_bootstrap_proto_enumTypes[0].Descriptor()
}
func (Watchdog_WatchdogAction_WatchdogEvent) Type() protoreflect.EnumType {
return &file_envoy_config_bootstrap_v3_bootstrap_proto_enumTypes[0]
}
func (x Watchdog_WatchdogAction_WatchdogEvent) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Watchdog_WatchdogAction_WatchdogEvent.Descriptor instead.
func (Watchdog_WatchdogAction_WatchdogEvent) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{4, 0, 0}
}
// Bootstrap :ref:`configuration overview <config_overview_bootstrap>`.
// [#next-free-field: 28]
type Bootstrap struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
// A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
// that will be included in the context parameters of the effective
// *UdpaResourceLocator* that is sent in a discovery request when resource
// locators are used for LDS/CDS. Any non-string field will have its JSON
// encoding set as the context parameter value, with the exception of
// metadata, which will be flattened (see example below). The supported field
// names are:
// - "cluster"
// - "id"
// - "locality.region"
// - "locality.sub_zone"
// - "locality.zone"
// - "metadata"
// - "user_agent_build_version.metadata"
// - "user_agent_build_version.version"
// - "user_agent_name"
// - "user_agent_version"
//
// The node context parameters act as a base layer dictionary for the context
// parameters (i.e. more specific resource specific context parameters will
// override). Field names will be prefixed with “udpa.node.” when included in
// context parameters.
//
// For example, if node_context_params is ``["user_agent_name", "metadata"]``,
// the implied context parameters might be::
//
// node.user_agent_name: "envoy"
// node.metadata.foo: "{\"bar\": \"baz\"}"
// node.metadata.some: "42"
// node.metadata.thing: "\"thing\""
//
// [#not-implemented-hide:]
NodeContextParams []string `protobuf:"bytes,26,rep,name=node_context_params,json=nodeContextParams,proto3" json:"node_context_params,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 *duration.Duration `protobuf:"bytes,7,opt,name=stats_flush_interval,json=statsFlushInterval,proto3" json:"stats_flush_interval,omitempty"`
// Optional watchdog configuration.
// This is for a single watchdog configuration for the entire system.
// Deprecated in favor of *watchdogs* which has finer granularity.
//
// Deprecated: Do not use.
Watchdog *Watchdog `protobuf:"bytes,8,opt,name=watchdog,proto3" json:"watchdog,omitempty"`
// Optional watchdogs configuration.
// This is used for specifying different watchdogs for the different subsystems.
Watchdogs *Watchdogs `protobuf:"bytes,27,opt,name=watchdogs,proto3" json:"watchdogs,omitempty"`
// Configuration for an external tracing provider.
//
// .. attention::
// This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
// <envoy_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
//
// Deprecated: Do not use.
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 *wrappers.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.
// Setting this value causes failure if the
// ``envoy.restart_features.use_apple_api_for_dns_lookups`` runtime value is true during
// server startup. Apple' API only uses UDP for DNS resolution.
UseTcpForDnsLookups bool `protobuf:"varint,20,opt,name=use_tcp_for_dns_lookups,json=useTcpForDnsLookups,proto3" json:"use_tcp_for_dns_lookups,omitempty"`
// Specifies optional bootstrap extensions to be instantiated at startup time.
// Each item contains extension specific configuration.
BootstrapExtensions []*v3.TypedExtensionConfig `protobuf:"bytes,21,rep,name=bootstrap_extensions,json=bootstrapExtensions,proto3" json:"bootstrap_extensions,omitempty"`
// Configuration sources that will participate in
// *udpa.core.v1.ResourceLocator* authority resolution. The algorithm is as
// follows:
// 1. The authority field is taken from the *udpa.core.v1.ResourceLocator*, call
// this *resource_authority*.
// 2. *resource_authority* is compared against the authorities in any peer
// *ConfigSource*. The peer *ConfigSource* is the configuration source
// message which would have been used unconditionally for resolution
// with opaque resource names. If there is a match with an authority, the
// peer *ConfigSource* message is used.
// 3. *resource_authority* is compared sequentially with the authorities in
// each configuration source in *config_sources*. The first *ConfigSource*
// to match wins.
// 4. As a fallback, if no configuration source matches, then
// *default_config_source* is used.
// 5. If *default_config_source* is not specified, resolution fails.
// [#not-implemented-hide:]
ConfigSources []*v3.ConfigSource `protobuf:"bytes,22,rep,name=config_sources,json=configSources,proto3" json:"config_sources,omitempty"`
// Default configuration source for *udpa.core.v1.ResourceLocator* if all
// other resolution fails.
// [#not-implemented-hide:]
DefaultConfigSource *v3.ConfigSource `protobuf:"bytes,23,opt,name=default_config_source,json=defaultConfigSource,proto3" json:"default_config_source,omitempty"`
// Optional overriding of default socket interface. The value must be the name of one of the
// socket interface factories initialized through a bootstrap extension
DefaultSocketInterface string `protobuf:"bytes,24,opt,name=default_socket_interface,json=defaultSocketInterface,proto3" json:"default_socket_interface,omitempty"`
// Global map of CertificateProvider instances. These instances are referred to by name in the
// :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
// <envoy_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
// field.
// [#not-implemented-hide:]
CertificateProviderInstances map[string]*v3.TypedExtensionConfig `protobuf:"bytes,25,rep,name=certificate_provider_instances,json=certificateProviderInstances,proto3" json:"certificate_provider_instances,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Deprecated: Do not use.
HiddenEnvoyDeprecatedRuntime *Runtime `protobuf:"bytes,11,opt,name=hidden_envoy_deprecated_runtime,json=hiddenEnvoyDeprecatedRuntime,proto3" json:"hidden_envoy_deprecated_runtime,omitempty"`
}
func (x *Bootstrap) Reset() {
*x = Bootstrap{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Bootstrap) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Bootstrap) ProtoMessage() {}
func (x *Bootstrap) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_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 Bootstrap.ProtoReflect.Descriptor instead.
func (*Bootstrap) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{0}
}
func (x *Bootstrap) GetNode() *v3.Node {
if x != nil {
return x.Node
}
return nil
}
func (x *Bootstrap) GetNodeContextParams() []string {
if x != nil {
return x.NodeContextParams
}
return nil
}
func (x *Bootstrap) GetStaticResources() *Bootstrap_StaticResources {
if x != nil {
return x.StaticResources
}
return nil
}
func (x *Bootstrap) GetDynamicResources() *Bootstrap_DynamicResources {
if x != nil {
return x.DynamicResources
}
return nil
}
func (x *Bootstrap) GetClusterManager() *ClusterManager {
if x != nil {
return x.ClusterManager
}
return nil
}
func (x *Bootstrap) GetHdsConfig() *v3.ApiConfigSource {
if x != nil {
return x.HdsConfig
}
return nil
}
func (x *Bootstrap) GetFlagsPath() string {
if x != nil {
return x.FlagsPath
}
return ""
}
func (x *Bootstrap) GetStatsSinks() []*v31.StatsSink {
if x != nil {
return x.StatsSinks
}
return nil
}
func (x *Bootstrap) GetStatsConfig() *v31.StatsConfig {
if x != nil {
return x.StatsConfig
}
return nil
}
func (x *Bootstrap) GetStatsFlushInterval() *duration.Duration {
if x != nil {
return x.StatsFlushInterval
}
return nil
}
// Deprecated: Do not use.
func (x *Bootstrap) GetWatchdog() *Watchdog {
if x != nil {
return x.Watchdog
}
return nil
}
func (x *Bootstrap) GetWatchdogs() *Watchdogs {
if x != nil {
return x.Watchdogs
}
return nil
}
// Deprecated: Do not use.
func (x *Bootstrap) GetTracing() *v32.Tracing {
if x != nil {
return x.Tracing
}
return nil
}
func (x *Bootstrap) GetLayeredRuntime() *LayeredRuntime {
if x != nil {
return x.LayeredRuntime
}
return nil
}
func (x *Bootstrap) GetAdmin() *Admin {
if x != nil {
return x.Admin
}
return nil
}
func (x *Bootstrap) GetOverloadManager() *v33.OverloadManager {
if x != nil {
return x.OverloadManager
}
return nil
}
func (x *Bootstrap) GetEnableDispatcherStats() bool {
if x != nil {
return x.EnableDispatcherStats
}
return false
}
func (x *Bootstrap) GetHeaderPrefix() string {
if x != nil {
return x.HeaderPrefix
}
return ""
}
func (x *Bootstrap) GetStatsServerVersionOverride() *wrappers.UInt64Value {
if x != nil {
return x.StatsServerVersionOverride
}
return nil
}
func (x *Bootstrap) GetUseTcpForDnsLookups() bool {
if x != nil {
return x.UseTcpForDnsLookups
}
return false
}
func (x *Bootstrap) GetBootstrapExtensions() []*v3.TypedExtensionConfig {
if x != nil {
return x.BootstrapExtensions
}
return nil
}
func (x *Bootstrap) GetConfigSources() []*v3.ConfigSource {
if x != nil {
return x.ConfigSources
}
return nil
}
func (x *Bootstrap) GetDefaultConfigSource() *v3.ConfigSource {
if x != nil {
return x.DefaultConfigSource
}
return nil
}
func (x *Bootstrap) GetDefaultSocketInterface() string {
if x != nil {
return x.DefaultSocketInterface
}
return ""
}
func (x *Bootstrap) GetCertificateProviderInstances() map[string]*v3.TypedExtensionConfig {
if x != nil {
return x.CertificateProviderInstances
}
return nil
}
// Deprecated: Do not use.
func (x *Bootstrap) GetHiddenEnvoyDeprecatedRuntime() *Runtime {
if x != nil {
return x.HiddenEnvoyDeprecatedRuntime
}
return nil
}
// Administration interface :ref:`operations documentation
// <operations_admin_interface>`.
type Admin struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *Admin) Reset() {
*x = Admin{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Admin) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Admin) ProtoMessage() {}
func (x *Admin) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_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 Admin.ProtoReflect.Descriptor instead.
func (*Admin) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{1}
}
func (x *Admin) GetAccessLogPath() string {
if x != nil {
return x.AccessLogPath
}
return ""
}
func (x *Admin) GetProfilePath() string {
if x != nil {
return x.ProfilePath
}
return ""
}
func (x *Admin) GetAddress() *v3.Address {
if x != nil {
return x.Address
}
return nil
}
func (x *Admin) GetSocketOptions() []*v3.SocketOption {
if x != nil {
return x.SocketOptions
}
return nil
}
// Cluster manager :ref:`architecture overview <arch_overview_cluster_manager>`.
type ClusterManager struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ClusterManager) Reset() {
*x = ClusterManager{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterManager) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterManager) ProtoMessage() {}
func (x *ClusterManager) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_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 ClusterManager.ProtoReflect.Descriptor instead.
func (*ClusterManager) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{2}
}
func (x *ClusterManager) GetLocalClusterName() string {
if x != nil {
return x.LocalClusterName
}
return ""
}
func (x *ClusterManager) GetOutlierDetection() *ClusterManager_OutlierDetection {
if x != nil {
return x.OutlierDetection
}
return nil
}
func (x *ClusterManager) GetUpstreamBindConfig() *v3.BindConfig {
if x != nil {
return x.UpstreamBindConfig
}
return nil
}
func (x *ClusterManager) GetLoadStatsConfig() *v3.ApiConfigSource {
if x != nil {
return x.LoadStatsConfig
}
return nil
}
// Allows you to specify different watchdog configs for different subsystems.
// This allows finer tuned policies for the watchdog. If a subsystem is omitted
// the default values for that system will be used.
type Watchdogs struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Watchdog for the main thread.
MainThreadWatchdog *Watchdog `protobuf:"bytes,1,opt,name=main_thread_watchdog,json=mainThreadWatchdog,proto3" json:"main_thread_watchdog,omitempty"`
// Watchdog for the worker threads.
WorkerWatchdog *Watchdog `protobuf:"bytes,2,opt,name=worker_watchdog,json=workerWatchdog,proto3" json:"worker_watchdog,omitempty"`
}
func (x *Watchdogs) Reset() {
*x = Watchdogs{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Watchdogs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Watchdogs) ProtoMessage() {}
func (x *Watchdogs) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Watchdogs.ProtoReflect.Descriptor instead.
func (*Watchdogs) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{3}
}
func (x *Watchdogs) GetMainThreadWatchdog() *Watchdog {
if x != nil {
return x.MainThreadWatchdog
}
return nil
}
func (x *Watchdogs) GetWorkerWatchdog() *Watchdog {
if x != nil {
return x.WorkerWatchdog
}
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.
// [#next-free-field: 8]
type Watchdog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Register actions that will fire on given WatchDog events.
// See *WatchDogAction* for priority of events.
Actions []*Watchdog_WatchdogAction `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
// The duration after which Envoy counts a nonresponsive thread in the
// *watchdog_miss* statistic. If not specified the default is 200ms.
MissTimeout *duration.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 *duration.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 *duration.Duration `protobuf:"bytes,3,opt,name=kill_timeout,json=killTimeout,proto3" json:"kill_timeout,omitempty"`
// Defines the maximum jitter used to adjust the *kill_timeout* if *kill_timeout* is
// enabled. Enabling this feature would help to reduce risk of synchronized
// watchdog kill events across proxies due to external triggers. Set to 0 to
// disable. If not specified the default is 0 (disabled).
MaxKillTimeoutJitter *duration.Duration `protobuf:"bytes,6,opt,name=max_kill_timeout_jitter,json=maxKillTimeoutJitter,proto3" json:"max_kill_timeout_jitter,omitempty"`
// If max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))
// threads have been nonresponsive for at least this duration kill the entire
// Envoy process. Set to 0 to disable this behavior. If not specified the
// default is 0 (disabled).
MultikillTimeout *duration.Duration `protobuf:"bytes,4,opt,name=multikill_timeout,json=multikillTimeout,proto3" json:"multikill_timeout,omitempty"`
// Sets the threshold for *multikill_timeout* in terms of the percentage of
// nonresponsive threads required for the *multikill_timeout*.
// If not specified the default is 0.
MultikillThreshold *v34.Percent `protobuf:"bytes,5,opt,name=multikill_threshold,json=multikillThreshold,proto3" json:"multikill_threshold,omitempty"`
}
func (x *Watchdog) Reset() {
*x = Watchdog{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Watchdog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Watchdog) ProtoMessage() {}
func (x *Watchdog) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Watchdog.ProtoReflect.Descriptor instead.
func (*Watchdog) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{4}
}
func (x *Watchdog) GetActions() []*Watchdog_WatchdogAction {
if x != nil {
return x.Actions
}
return nil
}
func (x *Watchdog) GetMissTimeout() *duration.Duration {
if x != nil {
return x.MissTimeout
}
return nil
}
func (x *Watchdog) GetMegamissTimeout() *duration.Duration {
if x != nil {
return x.MegamissTimeout
}
return nil
}
func (x *Watchdog) GetKillTimeout() *duration.Duration {
if x != nil {
return x.KillTimeout
}
return nil
}
func (x *Watchdog) GetMaxKillTimeoutJitter() *duration.Duration {
if x != nil {
return x.MaxKillTimeoutJitter
}
return nil
}
func (x *Watchdog) GetMultikillTimeout() *duration.Duration {
if x != nil {
return x.MultikillTimeout
}
return nil
}
func (x *Watchdog) GetMultikillThreshold() *v34.Percent {
if x != nil {
return x.MultikillThreshold
}
return nil
}
// Runtime :ref:`configuration overview <config_runtime>` (deprecated).
type Runtime struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 *_struct.Struct `protobuf:"bytes,4,opt,name=base,proto3" json:"base,omitempty"`
}
func (x *Runtime) Reset() {
*x = Runtime{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Runtime) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Runtime) ProtoMessage() {}
func (x *Runtime) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Runtime.ProtoReflect.Descriptor instead.
func (*Runtime) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{5}
}
func (x *Runtime) GetSymlinkRoot() string {
if x != nil {
return x.SymlinkRoot
}
return ""
}
func (x *Runtime) GetSubdirectory() string {
if x != nil {
return x.Subdirectory
}
return ""
}
func (x *Runtime) GetOverrideSubdirectory() string {
if x != nil {
return x.OverrideSubdirectory
}
return ""
}
func (x *Runtime) GetBase() *_struct.Struct {
if x != nil {
return x.Base
}
return nil
}
// [#next-free-field: 6]
type RuntimeLayer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 assignable to LayerSpecifier:
// *RuntimeLayer_StaticLayer
// *RuntimeLayer_DiskLayer_
// *RuntimeLayer_AdminLayer_
// *RuntimeLayer_RtdsLayer_
LayerSpecifier isRuntimeLayer_LayerSpecifier `protobuf_oneof:"layer_specifier"`
}
func (x *RuntimeLayer) Reset() {
*x = RuntimeLayer{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RuntimeLayer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RuntimeLayer) ProtoMessage() {}
func (x *RuntimeLayer) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_bootstrap_v3_bootstrap_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RuntimeLayer.ProtoReflect.Descriptor instead.
func (*RuntimeLayer) Descriptor() ([]byte, []int) {
return file_envoy_config_bootstrap_v3_bootstrap_proto_rawDescGZIP(), []int{6}
}
func (x *RuntimeLayer) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *RuntimeLayer) GetLayerSpecifier() isRuntimeLayer_LayerSpecifier {
if m != nil {
return m.LayerSpecifier
}
return nil
}
func (x *RuntimeLayer) GetStaticLayer() *_struct.Struct {
if x, ok := x.GetLayerSpecifier().(*RuntimeLayer_StaticLayer); ok {
return x.StaticLayer
}
return nil
}
func (x *RuntimeLayer) GetDiskLayer() *RuntimeLayer_DiskLayer {
if x, ok := x.GetLayerSpecifier().(*RuntimeLayer_DiskLayer_); ok {
return x.DiskLayer
}
return nil
}
func (x *RuntimeLayer) GetAdminLayer() *RuntimeLayer_AdminLayer {
if x, ok := x.GetLayerSpecifier().(*RuntimeLayer_AdminLayer_); ok {
return x.AdminLayer
}