dnsv2alpha

package
v1.36.2-20240129201517... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DnsTable_DnsEndpoint_AddressList_case case_DnsTable_DnsEndpoint_EndpointConfig = 1
View Source
const DnsTable_DnsEndpoint_EndpointConfig_not_set_case case_DnsTable_DnsEndpoint_EndpointConfig = 0

Variables

View Source
var File_envoy_data_dns_v2alpha_dns_table_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DnsTable

type DnsTable struct {

	// Control how many times envoy makes an attempt to forward a query to
	// an external server
	ExternalRetryCount uint32 `protobuf:"varint,1,opt,name=external_retry_count,json=externalRetryCount,proto3" json:"external_retry_count,omitempty"`
	// Fully qualified domain names for which Envoy will respond to queries
	VirtualDomains []*DnsTable_DnsVirtualDomain `protobuf:"bytes,2,rep,name=virtual_domains,json=virtualDomains,proto3" json:"virtual_domains,omitempty"`
	// This field serves to help Envoy determine whether it can authoritatively
	// answer a query for a name matching a suffix in this list. If the query
	// name does not match a suffix in this list, Envoy will forward
	// the query to an upstream DNS server
	KnownSuffixes []*matcher.StringMatcher `protobuf:"bytes,3,rep,name=known_suffixes,json=knownSuffixes,proto3" json:"known_suffixes,omitempty"`
	// contains filtered or unexported fields
}

This message contains the configuration for the DNS Filter if populated from the control plane

func (*DnsTable) GetExternalRetryCount

func (x *DnsTable) GetExternalRetryCount() uint32

func (*DnsTable) GetKnownSuffixes

func (x *DnsTable) GetKnownSuffixes() []*matcher.StringMatcher

func (*DnsTable) GetVirtualDomains

func (x *DnsTable) GetVirtualDomains() []*DnsTable_DnsVirtualDomain

func (*DnsTable) ProtoMessage

func (*DnsTable) ProtoMessage()

func (*DnsTable) ProtoReflect

func (x *DnsTable) ProtoReflect() protoreflect.Message

func (*DnsTable) Reset

func (x *DnsTable) Reset()

func (*DnsTable) SetExternalRetryCount

func (x *DnsTable) SetExternalRetryCount(v uint32)

func (*DnsTable) SetKnownSuffixes

func (x *DnsTable) SetKnownSuffixes(v []*matcher.StringMatcher)

func (*DnsTable) SetVirtualDomains

func (x *DnsTable) SetVirtualDomains(v []*DnsTable_DnsVirtualDomain)

func (*DnsTable) String

func (x *DnsTable) String() string

type DnsTable_AddressList

type DnsTable_AddressList struct {

	// This field contains a well formed IP address that is returned
	// in the answer for a name query. The address field can be an
	// IPv4 or IPv6 address. Address family detection is done automatically
	// when Envoy parses the string. Since this field is repeated,
	// Envoy will return one randomly chosen entry from this list in the
	// DNS response. The random index will vary per query so that we prevent
	// clients pinning on a single address for a configured domain
	Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

This message contains a list of IP addresses returned for a query for a known name

func (*DnsTable_AddressList) GetAddress

func (x *DnsTable_AddressList) GetAddress() []string

func (*DnsTable_AddressList) ProtoMessage

func (*DnsTable_AddressList) ProtoMessage()

func (*DnsTable_AddressList) ProtoReflect

func (x *DnsTable_AddressList) ProtoReflect() protoreflect.Message

func (*DnsTable_AddressList) Reset

func (x *DnsTable_AddressList) Reset()

func (*DnsTable_AddressList) SetAddress

func (x *DnsTable_AddressList) SetAddress(v []string)

func (*DnsTable_AddressList) String

func (x *DnsTable_AddressList) String() string

type DnsTable_AddressList_builder

type DnsTable_AddressList_builder struct {

	// This field contains a well formed IP address that is returned
	// in the answer for a name query. The address field can be an
	// IPv4 or IPv6 address. Address family detection is done automatically
	// when Envoy parses the string. Since this field is repeated,
	// Envoy will return one randomly chosen entry from this list in the
	// DNS response. The random index will vary per query so that we prevent
	// clients pinning on a single address for a configured domain
	Address []string
	// contains filtered or unexported fields
}

func (DnsTable_AddressList_builder) Build

type DnsTable_DnsEndpoint

type DnsTable_DnsEndpoint struct {

	// Types that are valid to be assigned to EndpointConfig:
	//
	//	*DnsTable_DnsEndpoint_AddressList
	EndpointConfig isDnsTable_DnsEndpoint_EndpointConfig `protobuf_oneof:"endpoint_config"`
	// contains filtered or unexported fields
}

This message type is extensible and can contain a list of addresses or dictate some other method for resolving the addresses for an endpoint

func (*DnsTable_DnsEndpoint) ClearAddressList

func (x *DnsTable_DnsEndpoint) ClearAddressList()

func (*DnsTable_DnsEndpoint) ClearEndpointConfig

func (x *DnsTable_DnsEndpoint) ClearEndpointConfig()

func (*DnsTable_DnsEndpoint) GetAddressList

func (x *DnsTable_DnsEndpoint) GetAddressList() *DnsTable_AddressList

func (*DnsTable_DnsEndpoint) GetEndpointConfig

func (x *DnsTable_DnsEndpoint) GetEndpointConfig() isDnsTable_DnsEndpoint_EndpointConfig

func (*DnsTable_DnsEndpoint) HasAddressList

func (x *DnsTable_DnsEndpoint) HasAddressList() bool

func (*DnsTable_DnsEndpoint) HasEndpointConfig

func (x *DnsTable_DnsEndpoint) HasEndpointConfig() bool

func (*DnsTable_DnsEndpoint) ProtoMessage

func (*DnsTable_DnsEndpoint) ProtoMessage()

func (*DnsTable_DnsEndpoint) ProtoReflect

func (x *DnsTable_DnsEndpoint) ProtoReflect() protoreflect.Message

func (*DnsTable_DnsEndpoint) Reset

func (x *DnsTable_DnsEndpoint) Reset()

func (*DnsTable_DnsEndpoint) SetAddressList

func (x *DnsTable_DnsEndpoint) SetAddressList(v *DnsTable_AddressList)

func (*DnsTable_DnsEndpoint) String

func (x *DnsTable_DnsEndpoint) String() string

func (*DnsTable_DnsEndpoint) WhichEndpointConfig

func (x *DnsTable_DnsEndpoint) WhichEndpointConfig() case_DnsTable_DnsEndpoint_EndpointConfig

type DnsTable_DnsEndpoint_AddressList

type DnsTable_DnsEndpoint_AddressList struct {
	AddressList *DnsTable_AddressList `protobuf:"bytes,1,opt,name=address_list,json=addressList,proto3,oneof"`
}

type DnsTable_DnsEndpoint_builder

type DnsTable_DnsEndpoint_builder struct {

	// Fields of oneof EndpointConfig:
	AddressList *DnsTable_AddressList
	// contains filtered or unexported fields
}

func (DnsTable_DnsEndpoint_builder) Build

type DnsTable_DnsVirtualDomain

type DnsTable_DnsVirtualDomain struct {

	// The domain name for which Envoy will respond to query requests
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The configuration containing the method to determine the address
	// of this endpoint
	Endpoint *DnsTable_DnsEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// Sets the TTL in dns answers from Envoy returned to the client
	AnswerTtl *durationpb.Duration `protobuf:"bytes,3,opt,name=answer_ttl,json=answerTtl,proto3" json:"answer_ttl,omitempty"`
	// contains filtered or unexported fields
}

func (*DnsTable_DnsVirtualDomain) ClearAnswerTtl

func (x *DnsTable_DnsVirtualDomain) ClearAnswerTtl()

func (*DnsTable_DnsVirtualDomain) ClearEndpoint

func (x *DnsTable_DnsVirtualDomain) ClearEndpoint()

func (*DnsTable_DnsVirtualDomain) GetAnswerTtl

func (x *DnsTable_DnsVirtualDomain) GetAnswerTtl() *durationpb.Duration

func (*DnsTable_DnsVirtualDomain) GetEndpoint

func (*DnsTable_DnsVirtualDomain) GetName

func (x *DnsTable_DnsVirtualDomain) GetName() string

func (*DnsTable_DnsVirtualDomain) HasAnswerTtl

func (x *DnsTable_DnsVirtualDomain) HasAnswerTtl() bool

func (*DnsTable_DnsVirtualDomain) HasEndpoint

func (x *DnsTable_DnsVirtualDomain) HasEndpoint() bool

func (*DnsTable_DnsVirtualDomain) ProtoMessage

func (*DnsTable_DnsVirtualDomain) ProtoMessage()

func (*DnsTable_DnsVirtualDomain) ProtoReflect

func (*DnsTable_DnsVirtualDomain) Reset

func (x *DnsTable_DnsVirtualDomain) Reset()

func (*DnsTable_DnsVirtualDomain) SetAnswerTtl

func (x *DnsTable_DnsVirtualDomain) SetAnswerTtl(v *durationpb.Duration)

func (*DnsTable_DnsVirtualDomain) SetEndpoint

func (*DnsTable_DnsVirtualDomain) SetName

func (x *DnsTable_DnsVirtualDomain) SetName(v string)

func (*DnsTable_DnsVirtualDomain) String

func (x *DnsTable_DnsVirtualDomain) String() string

type DnsTable_DnsVirtualDomain_builder

type DnsTable_DnsVirtualDomain_builder struct {

	// The domain name for which Envoy will respond to query requests
	Name string
	// The configuration containing the method to determine the address
	// of this endpoint
	Endpoint *DnsTable_DnsEndpoint
	// Sets the TTL in dns answers from Envoy returned to the client
	AnswerTtl *durationpb.Duration
	// contains filtered or unexported fields
}

func (DnsTable_DnsVirtualDomain_builder) Build

type DnsTable_builder

type DnsTable_builder struct {

	// Control how many times envoy makes an attempt to forward a query to
	// an external server
	ExternalRetryCount uint32
	// Fully qualified domain names for which Envoy will respond to queries
	VirtualDomains []*DnsTable_DnsVirtualDomain
	// This field serves to help Envoy determine whether it can authoritatively
	// answer a query for a name matching a suffix in this list. If the query
	// name does not match a suffix in this list, Envoy will forward
	// the query to an upstream DNS server
	KnownSuffixes []*matcher.StringMatcher
	// contains filtered or unexported fields
}

func (DnsTable_builder) Build

func (b0 DnsTable_builder) Build() *DnsTable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL