Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatedResources ¶
type AllocatedResources struct {
Limits ResourceList `json:"limits"`
Request ResourceList `json:"request"`
}
type INode ¶
type INode interface {
NodeDescribeList(isAll bool) map[string]*NodeDescribe
NodesTotal() ResourceList
NodesRemain() ResourceList
}
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) NodeDescribeList ¶
func (n *Node) NodeDescribeList(isAll bool) map[string]*NodeDescribe
func (*Node) NodesRemain ¶
func (n *Node) NodesRemain() ResourceList
func (*Node) NodesTotal ¶
func (n *Node) NodesTotal() ResourceList
type NodeDescribe ¶
type NodeDescribe struct {
Name string `json:"name,omitempty"`
Role string `json:"role,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Taints []corev1.Taint `json:"taints,omitempty"`
Unschedulable bool `json:"unschedulable,omitempty"`
Lease *corrdinv1.Lease `json:"lease,omitempty"`
Conditions *[]corev1.NodeCondition `json:"conditions,omitempty"`
Address *[]corev1.NodeAddress `json:"address,omitempty"`
Capacity *ResourceList `json:"capacity,omitempty"`
Allocatable *ResourceList `json:"allocatable,omitempty"`
SystemInfo *corev1.NodeSystemInfo `json:"systemInfo,omitempty"`
PodCIDR string `json:"podCIDR,omitempty"`
PodCIDRs *[]string `json:"podCIDRs,omitempty"`
NonTerminatedPods *[]NonTerminatedPod `json:"nonTerminatedPods,omitempty"`
AllocatedResources AllocatedResources `json:"allocatedResources,omitempty"`
}
type NonTerminatedPod ¶
type NonTerminatedPod struct {
NameSpace string `json:"namespace"`
Name string `json:"name"`
Limits ResourceList `json:"limits"`
Request ResourceList `json:"request"`
}
type ResourceList ¶
Click to show internal directories.
Click to hide internal directories.