Documentation
¶
Index ¶
- func DeleteNode(cli *kubernetes.Clientset, name string) error
- func GetNodeByName(cli *kubernetes.Clientset, name string) (*v1.Node, error)
- func GetNodeCounts(indexer *client.CacheFactory) (int, error)
- func UpdateNode(cli *kubernetes.Clientset, node *v1.Node) (*v1.Node, error)
- type Node
- type NodeListResult
- type NodeListSummary
- type NodeSpec
- type NodeStatistics
- type NodeStatus
- type ResourceSummary
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(indexer *client.CacheFactory) (int, error)
func UpdateNode ¶
Types ¶
type NodeListResult ¶ added in v1.3.0
type NodeListResult struct {
NodeSummary NodeListSummary `json:"nodeSummary"`
CpuSummary ResourceSummary `json:"cpuSummary"`
MemorySummary ResourceSummary `json:"memorySummary"`
Nodes []Node `json:"nodes"`
}
func ListNode ¶
func ListNode(indexer *client.CacheFactory) (*NodeListResult, error)
type NodeListSummary ¶ added in v1.3.0
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"`
}
type ResourceSummary ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.