Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Version string `json:"version"` Nodes []Node `json:"nodes"` Namespaces []string `json:"namespaces"` Ingresses []string `json:"ingresses"` }
Cluster represents the basic information of a cluster.
func GatherClusterInfo ¶
type InfoService ¶
type InfoService interface {
// contains filtered or unexported methods
}
type Node ¶
type Node struct { Version string `json:"version"` Name string `json:"name"` OS string `json:"os"` CRI string `json:"cri"` Kernel string `json:"kernel"` IP string `json:"ip"` Pods []Pod `json:"pods"` CPU string `json:"cpu"` Memory string `json:"memory"` Ready bool `json:"ready"` Master bool `json:"master"` }
Node represents the basic information of a cluster node.
Click to show internal directories.
Click to hide internal directories.