Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { KubeClient *kubernetes.Clientset ExpectedNodes int }
func NewCluster ¶
func NewCluster(client *kubernetes.Clientset, expectedNodes int) *Cluster
NewCluster constructs and returns a new Cluster object.
func (*Cluster) GetNodeStatus ¶
func (cl *Cluster) GetNodeStatus() (*NodeStatus, error)
GetNodeStatus returns the status for all running nodes or an error.
type NodeStatus ¶
type NodeStatus struct {
// contains filtered or unexported fields
}
NodeStatus represents the status of all nodes of a cluster.
func (*NodeStatus) PrettyPrint ¶
func (ns *NodeStatus) PrettyPrint()
PrettyPrint prints Node statuses in a pretty way.
func (*NodeStatus) Ready ¶
func (ns *NodeStatus) Ready() bool
Ready checks if all nodes are ready and returns false otherwise.
Click to show internal directories.
Click to hide internal directories.