Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { IP string `json:"ip"` TargetRef *ObjectReference `json:"targetRef,omitempty"` }
type K8sClient ¶
type K8sClient interface { Do(req *http.Request) (*http.Response, error) GetRequest(url string) (*http.Request, error) Host() string }
K8sClient is minimal kubernetes client interface
func NewInClusterK8sClient ¶
NewInClusterK8sClient creates K8sClient if it is inside Kubernetes
func NewInsecureK8sClient ¶
NewInsecureK8sClient creates an insecure k8s client which is suitable to connect kubernetes api behind proxy
type KResolver ¶
type KResolver struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(l log.Logger, k8sClient K8sClient, upd ResolveUpdates, target TargetInfo) (*KResolver, error)
type ObjectReference ¶
type ResolveUpdates ¶
type ResolveUpdates interface {
Resolved(e Endpoints)
}
type ResolveUpdatesFunc ¶
type ResolveUpdatesFunc func(e Endpoints)
func (ResolveUpdatesFunc) Resolved ¶
func (f ResolveUpdatesFunc) Resolved(e Endpoints)
type TargetInfo ¶
Click to show internal directories.
Click to hide internal directories.