Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
NewBuilder creates a kubeBuilder which is used to factory Kuberesolvers.
func RegisterInCluster ¶
func RegisterInCluster()
RegisterInCluster registers the kuberesolver builder to grpc
func RegisterInClusterWithSchema ¶
func RegisterInClusterWithSchema(schema string)
Types ¶
type Address ¶
type Address struct { IP string `json:"ip"` TargetRef *ObjectReference `json:"targetRef,omitempty"` }
Address ...
type Endpoints ¶
type Endpoints struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata Metadata `json:"metadata"` Subsets []Subset `json:"subsets"` }
Endpoints ...
type K8sClient ¶
type K8sClient interface { Do(req *http.Request) (*http.Response, error) GetRequest(url string) (*http.Request, error) Host() string Namespace() 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 Metadata ¶
type Metadata struct { Name string `json:"name"` Namespace string `json:"namespace"` ResourceVersion string `json:"resourceVersion"` Labels map[string]string `json:"labels"` }
Metadata ...
type ObjectReference ¶
type ObjectReference struct { Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` }
ObjectReference ...
Click to show internal directories.
Click to hide internal directories.