Documentation ¶
Index ¶
- Constants
- func New(k8sURL string, source tokenauth.Source, tlsConfig *tls.Config) naming.Resolver
- func NewFromConfig(conf *pb.K8SResolver) (target string, name naming.Resolver, err error)
- func NewFromFlags() (naming.Resolver, error)
- func NewWithClient(k8sURL string, k8sClient *http.Client) naming.Resolver
Constants ¶
View Source
const ( // ExpectedTargetFmt is an expected format of the targetEntry Name given to Resolver. This is complainant with // the kubeDNS/CoreDNS entry format. ExpectedTargetFmt = "<service>(|.<namespace>)(|.<whatever suffix>)(|:<port_name>|:<value number>)" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new Kubernetes resolver with HTTP client (based on given tokenauth Source and tlsConfig) to be used against kube-apiserver.
func NewFromConfig ¶
func NewFromFlags ¶
NewFromFlags creates resolver from flag from k8sresolver.sharedflags.Set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.