Documentation ¶
Index ¶
- Variables
- type DnsCluster
- func (*DnsCluster) Descriptor() ([]byte, []int)deprecated
- func (x *DnsCluster) GetAllAddressesInSingleEndpoint() bool
- func (x *DnsCluster) GetDnsFailureRefreshRate() *DnsCluster_RefreshRate
- func (x *DnsCluster) GetDnsJitter() *durationpb.Duration
- func (x *DnsCluster) GetDnsLookupFamily() v31.DnsLookupFamily
- func (x *DnsCluster) GetDnsRefreshRate() *durationpb.Duration
- func (x *DnsCluster) GetRespectDnsTtl() bool
- func (x *DnsCluster) GetTypedDnsResolverConfig() *v3.TypedExtensionConfig
- func (*DnsCluster) ProtoMessage()
- func (x *DnsCluster) ProtoReflect() protoreflect.Message
- func (x *DnsCluster) Reset()
- func (x *DnsCluster) String() string
- func (m *DnsCluster) Validate() error
- func (m *DnsCluster) ValidateAll() error
- type DnsClusterMultiError
- type DnsClusterValidationError
- type DnsCluster_RefreshRate
- func (*DnsCluster_RefreshRate) Descriptor() ([]byte, []int)deprecated
- func (x *DnsCluster_RefreshRate) GetBaseInterval() *durationpb.Duration
- func (x *DnsCluster_RefreshRate) GetMaxInterval() *durationpb.Duration
- func (*DnsCluster_RefreshRate) ProtoMessage()
- func (x *DnsCluster_RefreshRate) ProtoReflect() protoreflect.Message
- func (x *DnsCluster_RefreshRate) Reset()
- func (x *DnsCluster_RefreshRate) String() string
- func (m *DnsCluster_RefreshRate) Validate() error
- func (m *DnsCluster_RefreshRate) ValidateAll() error
- type DnsCluster_RefreshRateMultiError
- type DnsCluster_RefreshRateValidationError
- func (e DnsCluster_RefreshRateValidationError) Cause() error
- func (e DnsCluster_RefreshRateValidationError) Error() string
- func (e DnsCluster_RefreshRateValidationError) ErrorName() string
- func (e DnsCluster_RefreshRateValidationError) Field() string
- func (e DnsCluster_RefreshRateValidationError) Key() bool
- func (e DnsCluster_RefreshRateValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_clusters_dns_v3_dns_cluster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DnsCluster ¶
type DnsCluster struct { // This value is the cluster’s DNS refresh rate. The value configured must be at least 1ms. // If this setting is not specified, the // value defaults to 5000ms. DnsRefreshRate *durationpb.Duration `protobuf:"bytes,3,opt,name=dns_refresh_rate,json=dnsRefreshRate,proto3" json:"dns_refresh_rate,omitempty"` // This is the cluster’s DNS refresh rate when requests are failing. If this setting is // not specified, the failure refresh rate defaults to the DNS refresh rate. DnsFailureRefreshRate *DnsCluster_RefreshRate `` /* 128-byte string literal not displayed */ // Optional configuration for setting cluster's DNS refresh rate. If the value is set to true, // cluster's DNS refresh rate will be set to resource record's TTL which comes from DNS // resolution. RespectDnsTtl bool `protobuf:"varint,5,opt,name=respect_dns_ttl,json=respectDnsTtl,proto3" json:"respect_dns_ttl,omitempty"` // DNS jitter causes the cluster to refresh DNS entries later by a random amount of time to avoid a // stampede of DNS requests. This value sets the upper bound (exclusive) for the random amount. // There will be no jitter if this value is omitted. DnsJitter *durationpb.Duration `protobuf:"bytes,6,opt,name=dns_jitter,json=dnsJitter,proto3" json:"dns_jitter,omitempty"` // DNS resolver type configuration extension. This extension can be used to configure c-ares, apple, // or any other DNS resolver types and the related parameters. // For example, an object of // :ref:`CaresDnsResolverConfig<envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>` // can be packed into this “typed_dns_resolver_config“. This configuration replaces the // :ref:`Cluster.typed_dns_resolver_config<envoy_v3_api_field_config.cluster.v3.Cluster.typed_dns_resolver_config>` // configuration which replaces :ref:`Cluster.dns_resolution_config<envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`. // During the transition period when // :ref:`DnsCluster.typed_dns_resolver_config<envoy_v3_api_field_extensions.clusters.dns.v3.DnsCluster.typed_dns_resolver_config>`, // :ref:`Cluster.typed_dns_resolver_config<envoy_v3_api_field_config.cluster.v3.Cluster.typed_dns_resolver_config>`, // and :ref:`Cluster.dns_resolution_config<envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>` // exist, Envoy will use // :ref:`DnsCluster.typed_dns_resolver_config<envoy_v3_api_field_extensions.clusters.dns.v3.DnsCluster.typed_dns_resolver_config>` // and ignore // DNS resolver-related fields in :ref:`Cluster<envoy_v3_api_msg_config.cluster.v3.Cluster>` if the cluster is configured via the // :ref:`Cluster.cluster_type<envoy_v3_api_field_config.cluster.v3.Cluster.cluster_type>` extension point with the // :ref:`DnsCluster<envoy_v3_api_msg_extensions.clusters.dns.v3.DnsCluster>` extension type. // Otherwise, see :ref:`Cluster.typed_dns_resolver_config<envoy_v3_api_field_config.cluster.v3.Cluster.typed_dns_resolver_config>`. // [#extension-category: envoy.network.dns_resolver] TypedDnsResolverConfig *v3.TypedExtensionConfig `` /* 131-byte string literal not displayed */ // The DNS IP address resolution policy. If this setting is not specified, the // value defaults to // :ref:`AUTO<envoy_v3_api_enum_value_extensions.clusters.common.dns.v3.DnsLookupFamily.AUTO>`. DnsLookupFamily v31.DnsLookupFamily `` /* 170-byte string literal not displayed */ // If true, all returned addresses are considered to be associated with a single endpoint, // which maps to :ref:`logical DNS discovery <arch_overview_service_discovery_types_logical_dns>` // semantics. Otherwise, each address is considered to be a separate endpoint, which maps to // :ref:`strict DNS discovery <arch_overview_service_discovery_types_strict_dns>` semantics. AllAddressesInSingleEndpoint bool `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
[#next-free-field: 10]
func (*DnsCluster) Descriptor
deprecated
func (*DnsCluster) Descriptor() ([]byte, []int)
Deprecated: Use DnsCluster.ProtoReflect.Descriptor instead.
func (*DnsCluster) GetAllAddressesInSingleEndpoint ¶
func (x *DnsCluster) GetAllAddressesInSingleEndpoint() bool
func (*DnsCluster) GetDnsFailureRefreshRate ¶
func (x *DnsCluster) GetDnsFailureRefreshRate() *DnsCluster_RefreshRate
func (*DnsCluster) GetDnsJitter ¶
func (x *DnsCluster) GetDnsJitter() *durationpb.Duration
func (*DnsCluster) GetDnsLookupFamily ¶
func (x *DnsCluster) GetDnsLookupFamily() v31.DnsLookupFamily
func (*DnsCluster) GetDnsRefreshRate ¶
func (x *DnsCluster) GetDnsRefreshRate() *durationpb.Duration
func (*DnsCluster) GetRespectDnsTtl ¶
func (x *DnsCluster) GetRespectDnsTtl() bool
func (*DnsCluster) GetTypedDnsResolverConfig ¶
func (x *DnsCluster) GetTypedDnsResolverConfig() *v3.TypedExtensionConfig
func (*DnsCluster) ProtoMessage ¶
func (*DnsCluster) ProtoMessage()
func (*DnsCluster) ProtoReflect ¶
func (x *DnsCluster) ProtoReflect() protoreflect.Message
func (*DnsCluster) Reset ¶
func (x *DnsCluster) Reset()
func (*DnsCluster) String ¶
func (x *DnsCluster) String() string
func (*DnsCluster) Validate ¶
func (m *DnsCluster) Validate() error
Validate checks the field values on DnsCluster with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DnsCluster) ValidateAll ¶
func (m *DnsCluster) ValidateAll() error
ValidateAll checks the field values on DnsCluster with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DnsClusterMultiError, or nil if none found.
type DnsClusterMultiError ¶
type DnsClusterMultiError []error
DnsClusterMultiError is an error wrapping multiple validation errors returned by DnsCluster.ValidateAll() if the designated constraints aren't met.
func (DnsClusterMultiError) AllErrors ¶
func (m DnsClusterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DnsClusterMultiError) Error ¶
func (m DnsClusterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DnsClusterValidationError ¶
type DnsClusterValidationError struct {
// contains filtered or unexported fields
}
DnsClusterValidationError is the validation error returned by DnsCluster.Validate if the designated constraints aren't met.
func (DnsClusterValidationError) Cause ¶
func (e DnsClusterValidationError) Cause() error
Cause function returns cause value.
func (DnsClusterValidationError) Error ¶
func (e DnsClusterValidationError) Error() string
Error satisfies the builtin error interface
func (DnsClusterValidationError) ErrorName ¶
func (e DnsClusterValidationError) ErrorName() string
ErrorName returns error name.
func (DnsClusterValidationError) Field ¶
func (e DnsClusterValidationError) Field() string
Field function returns field value.
func (DnsClusterValidationError) Key ¶
func (e DnsClusterValidationError) Key() bool
Key function returns key value.
func (DnsClusterValidationError) Reason ¶
func (e DnsClusterValidationError) Reason() string
Reason function returns reason value.
type DnsCluster_RefreshRate ¶
type DnsCluster_RefreshRate struct { // Specifies the base interval between refreshes. This parameter is required and must be greater // than zero and less than // :ref:`max_interval <envoy_v3_api_field_extensions.clusters.dns.v3.DnsCluster.RefreshRate.max_interval>`. BaseInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=base_interval,json=baseInterval,proto3" json:"base_interval,omitempty"` // Specifies the maximum interval between refreshes. This parameter is optional, but must be // greater than or equal to the // :ref:`base_interval <envoy_v3_api_field_extensions.clusters.dns.v3.DnsCluster.RefreshRate.base_interval>` if set. The default // is 10 times the :ref:`base_interval <envoy_v3_api_field_extensions.clusters.dns.v3.DnsCluster.RefreshRate.base_interval>`. MaxInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"` // contains filtered or unexported fields }
func (*DnsCluster_RefreshRate) Descriptor
deprecated
func (*DnsCluster_RefreshRate) Descriptor() ([]byte, []int)
Deprecated: Use DnsCluster_RefreshRate.ProtoReflect.Descriptor instead.
func (*DnsCluster_RefreshRate) GetBaseInterval ¶
func (x *DnsCluster_RefreshRate) GetBaseInterval() *durationpb.Duration
func (*DnsCluster_RefreshRate) GetMaxInterval ¶
func (x *DnsCluster_RefreshRate) GetMaxInterval() *durationpb.Duration
func (*DnsCluster_RefreshRate) ProtoMessage ¶
func (*DnsCluster_RefreshRate) ProtoMessage()
func (*DnsCluster_RefreshRate) ProtoReflect ¶
func (x *DnsCluster_RefreshRate) ProtoReflect() protoreflect.Message
func (*DnsCluster_RefreshRate) Reset ¶
func (x *DnsCluster_RefreshRate) Reset()
func (*DnsCluster_RefreshRate) String ¶
func (x *DnsCluster_RefreshRate) String() string
func (*DnsCluster_RefreshRate) Validate ¶
func (m *DnsCluster_RefreshRate) Validate() error
Validate checks the field values on DnsCluster_RefreshRate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DnsCluster_RefreshRate) ValidateAll ¶
func (m *DnsCluster_RefreshRate) ValidateAll() error
ValidateAll checks the field values on DnsCluster_RefreshRate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DnsCluster_RefreshRateMultiError, or nil if none found.
type DnsCluster_RefreshRateMultiError ¶
type DnsCluster_RefreshRateMultiError []error
DnsCluster_RefreshRateMultiError is an error wrapping multiple validation errors returned by DnsCluster_RefreshRate.ValidateAll() if the designated constraints aren't met.
func (DnsCluster_RefreshRateMultiError) AllErrors ¶
func (m DnsCluster_RefreshRateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DnsCluster_RefreshRateMultiError) Error ¶
func (m DnsCluster_RefreshRateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DnsCluster_RefreshRateValidationError ¶
type DnsCluster_RefreshRateValidationError struct {
// contains filtered or unexported fields
}
DnsCluster_RefreshRateValidationError is the validation error returned by DnsCluster_RefreshRate.Validate if the designated constraints aren't met.
func (DnsCluster_RefreshRateValidationError) Cause ¶
func (e DnsCluster_RefreshRateValidationError) Cause() error
Cause function returns cause value.
func (DnsCluster_RefreshRateValidationError) Error ¶
func (e DnsCluster_RefreshRateValidationError) Error() string
Error satisfies the builtin error interface
func (DnsCluster_RefreshRateValidationError) ErrorName ¶
func (e DnsCluster_RefreshRateValidationError) ErrorName() string
ErrorName returns error name.
func (DnsCluster_RefreshRateValidationError) Field ¶
func (e DnsCluster_RefreshRateValidationError) Field() string
Field function returns field value.
func (DnsCluster_RefreshRateValidationError) Key ¶
func (e DnsCluster_RefreshRateValidationError) Key() bool
Key function returns key value.
func (DnsCluster_RefreshRateValidationError) Reason ¶
func (e DnsCluster_RefreshRateValidationError) Reason() string
Reason function returns reason value.