Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoint ¶
type Endpoint struct { ObjectMeta api.ObjectMeta `json:"objectMeta"` TypeMeta api.TypeMeta `json:"typeMeta"` // Hostname, either as a domain name or IP address. Host string `json:"host"` // Name of the node the endpoint is located NodeName *string `json:"nodeName"` // Status of the endpoint Ready bool `json:"ready"` // Array of endpoint ports Ports []v1.EndpointPort `json:"ports"` }
type EndpointList ¶
type EndpointList struct { ListMeta api.ListMeta `json:"listMeta"` // List of endpoints Endpoints []Endpoint `json:"endpoints"` }
func GetServiceEndpoints ¶
func GetServiceEndpoints(client k8sClient.Interface, namespace, name string) (*EndpointList, error)
GetServiceEndpoints gets list of endpoints targeted by given label selector in given namespace.
Click to show internal directories.
Click to hide internal directories.