lokomotive

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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.

func (*Cluster) Health

func (cl *Cluster) Health() ([]v1.ComponentStatus, error)

func (*Cluster) Verify added in v0.4.1

func (cl *Cluster) Verify() error

Verify checks cluster health and returns an error if some issues are detected.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL