Documentation ¶
Index ¶
Constants ¶
View Source
const (
KubernetesSchema = "kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
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 }
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 K8sResolver ¶
type K8sResolver struct {
// contains filtered or unexported fields
}
func (*K8sResolver) Close ¶
func (r *K8sResolver) Close() error
func (*K8sResolver) Watch ¶
func (r *K8sResolver) Watch() <-chan struct{}
func (*K8sResolver) Watchk8sAPI ¶
func (r *K8sResolver) Watchk8sAPI() error
type ObjectReference ¶
Click to show internal directories.
Click to hide internal directories.