Documentation ¶
Index ¶
- func FilterNodes(nodes []v1.Node, test func(v1.Node) bool) (ret []v1.Node)
- func GetNodesIpToName(nodes []v1.Node) map[string]string
- func GetNodesNameToIp(nodes []v1.Node) map[string]string
- func MapNodeNames(nodes []string, f func(string) v1.Node) (ret []v1.Node)
- func MapNodes(nodes []v1.Node, f func(v1.Node) string) (ret []string)
- func RetrieveInternalIP(node v1.Node) string
- func WindowsOS(node v1.Node) bool
- type K8sapi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterNodes ¶
Operations on v1.Node objects
func GetNodesNameToIp ¶
Retrieves node names and ips given a list of nodes
return map of node name to node ip
func RetrieveInternalIP ¶
Types ¶
type K8sapi ¶
type K8sapi struct {
// contains filtered or unexported fields
}
K8sapi is used to request data from the Kubernetes API-Server
func (*K8sapi) GetAllNodesWindows ¶
Click to show internal directories.
Click to hide internal directories.