Documentation ¶
Index ¶
- Constants
- func New(logger logrus.FieldLogger, k8sURL string, source tokenauth.Source, ...) naming.Resolver
- func NewFromConfig(conf *pb.K8SResolver) (target string, name naming.Resolver, err error)
- func NewFromFlags(logger logrus.FieldLogger) (naming.Resolver, error)
- func NewWithClient(logger logrus.FieldLogger, 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 ¶
func New(logger logrus.FieldLogger, k8sURL string, source tokenauth.Source, tlsConfig *tls.Config) naming.Resolver
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 ¶
func NewFromFlags(logger logrus.FieldLogger) (naming.Resolver, error)
NewFromFlags creates resolver from flag from k8sresolver.sharedflags.Set.
func NewWithClient ¶
func NewWithClient(logger logrus.FieldLogger, k8sURL string, k8sClient *http.Client) naming.Resolver
NewWithClient returns a new Kubernetes resolver using given http.Client configured to be used against kube-apiserver.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.