Documentation ¶
Overview ¶
Package kedge_config_common_resolvers is a generated protocol buffer package.
It is generated from these files:
kedge/config/common/resolvers/resolvers.proto
It has these top-level messages:
SrvResolver K8SResolver
Package kedge_config_common_resolvers is a generated protocol buffer package.
It is generated from these files:
kedge/config/common/resolvers/resolvers.proto
It has these top-level messages:
SrvResolver K8SResolver
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8SResolver ¶
type K8SResolver struct { // Common kube DNS name with optional port: "<service><|.namespace>(.whatever suffix)<|:port_name|:value number>" // to resolve by this resolver using endpoints API. // e.g ":backend1.namespace1:http_port1" DnsPortName string `protobuf:"bytes,1,opt,name=dns_port_name,json=dnsPortName" json:"dns_port_name,omitempty"` }
/ K8sResolver uses the Kubernetes Endpoints API to identify the service. / It watched Endpoint API for changes using the pod's credentails to fetch the service information.
func (*K8SResolver) Descriptor ¶
func (*K8SResolver) Descriptor() ([]byte, []int)
func (*K8SResolver) GetDnsPortName ¶
func (m *K8SResolver) GetDnsPortName() string
func (*K8SResolver) ProtoMessage ¶
func (*K8SResolver) ProtoMessage()
func (*K8SResolver) Reset ¶
func (m *K8SResolver) Reset()
func (*K8SResolver) String ¶
func (m *K8SResolver) String() string
func (*K8SResolver) Validate ¶
func (this *K8SResolver) Validate() error
type SrvResolver ¶
type SrvResolver struct { // / dns_name specifies the address to look up using DNS SRV. Needs to be a FQDN. // / E.g. "_grpc._tcp.someservice.somenamespace.svc.cluster.local" DnsName string `protobuf:"bytes,1,opt,name=dns_name,json=dnsName" json:"dns_name,omitempty"` // / not recommended, but port override allows to ignore port form SRV record and use one defined here. // / Useful when there are multiple services identifed under the same domain. PortOverride uint32 `protobuf:"varint,2,opt,name=port_override,json=portOverride" json:"port_override,omitempty"` }
/ SrvBackend describes a backend that is resolved and load balanced using SRV.
func (*SrvResolver) Descriptor ¶
func (*SrvResolver) Descriptor() ([]byte, []int)
func (*SrvResolver) GetDnsName ¶
func (m *SrvResolver) GetDnsName() string
func (*SrvResolver) GetPortOverride ¶
func (m *SrvResolver) GetPortOverride() uint32
func (*SrvResolver) ProtoMessage ¶
func (*SrvResolver) ProtoMessage()
func (*SrvResolver) Reset ¶
func (m *SrvResolver) Reset()
func (*SrvResolver) String ¶
func (m *SrvResolver) String() string
func (*SrvResolver) Validate ¶
func (this *SrvResolver) Validate() error
Click to show internal directories.
Click to hide internal directories.