Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
NewBuilder creates a kubeBuilder which is used by grpc resolver.
func RegisterInCluster ¶
func RegisterInCluster()
RegisterInCluster registers the kuberesolver builder to grpc with kubernetes schema
func RegisterInClusterWithSchema ¶
func RegisterInClusterWithSchema(schema string)
RegisterInClusterWithSchema registers the kuberesolver builder to the grpc with custom schema
Types ¶
type Endpoint ¶
type Endpoint struct {
Addresses []string
Conditions EndpointConditions
}
type EndpointConditions ¶
type EndpointPort ¶
type EndpointSlice ¶
type EndpointSlice struct {
Endpoints []Endpoint
Ports []EndpointPort
}
type EndpointSliceList ¶
type EndpointSliceList struct {
Items []EndpointSlice
}
type Event ¶
type Event struct {
Type EventType `json:"type"`
Object EndpointSlice `json:"object"`
}
Event represents a single event to a watched resource.
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
Click to show internal directories.
Click to hide internal directories.