Documentation ¶
Index ¶
- func Connect(kubeconfig *string) (*kubernetes.Clientset, error)
- func GetHostList(conn *kubernetes.Clientset, namespace *string, selector *string, usePods *bool) *[]Node
- func GetNodeInternalIP(node *v1.Node) string
- func GetPodsNodes(clientset *kubernetes.Clientset, pods *v1.PodList) *[]*v1.Node
- func IfHostReady(node *v1.Node) bool
- func QueryNodes(clientset *kubernetes.Clientset, labels *string) *v1.NodeList
- func QueryPods(clientset *kubernetes.Clientset, namespace *string, labels *string) *v1.PodList
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(kubeconfig *string) (*kubernetes.Clientset, error)
Connects to kubernetes cluster
func GetHostList ¶
func GetHostList(conn *kubernetes.Clientset, namespace *string, selector *string, usePods *bool) *[]Node
Returns Final list of nodes corresponding user query
func GetNodeInternalIP ¶
Returns node InternalIP. returns as soon as first instance of InternalIP is found
func GetPodsNodes ¶
Returns slice of unique nodes on which Pods are running
func IfHostReady ¶
Checks whether node is Ready, a.k.a healthy, or not
func QueryNodes ¶
func QueryNodes(clientset *kubernetes.Clientset, labels *string) *v1.NodeList
Query for Nodes using given LabelSelector if any
Types ¶
Click to show internal directories.
Click to hide internal directories.