Documentation ¶
Index ¶
- func DeleteNode(cli *kubernetes.Clientset, name string) error
- func GetNodeByName(cli *kubernetes.Clientset, name string) (*v1.Node, error)
- func GetNodeCounts(cli *kubernetes.Clientset) (int, error)
- func UpdateNode(cli *kubernetes.Clientset, node *v1.Node) (*v1.Node, error)
- type Node
- type NodeSpec
- type NodeStatistics
- type NodeStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNode ¶
func DeleteNode(cli *kubernetes.Clientset, name string) error
func GetNodeByName ¶
func GetNodeCounts ¶
func GetNodeCounts(cli *kubernetes.Clientset) (int, error)
func UpdateNode ¶
Types ¶
type Node ¶
type Node struct { Name string `json:"name,omitempty"` Labels map[string]string `json:"labels,omitempty"` CreationTimestamp metaV1.Time `json:"creationTimestamp"` Spec NodeSpec `json:"spec,omitempty"` Status NodeStatus `json:"status,omitempty"` }
func ListNode ¶
func ListNode(cli *kubernetes.Clientset, listOptions metaV1.ListOptions) ([]Node, error)
type NodeSpec ¶
type NodeSpec struct { Unschedulable bool `json:"unschedulable"` // If specified, the node's taints. // +optional Taints []v1.Taint `json:"taints,omitempty"` Ready v1.ConditionStatus `json:"ready"` }
type NodeStatistics ¶
type NodeStatus ¶
type NodeStatus struct { Capacity map[v1.ResourceName]string `json:"capacity,omitempty"` NodeInfo v1.NodeSystemInfo `json:"nodeInfo,omitempty"` }
Click to show internal directories.
Click to hide internal directories.