Documentation
¶
Index ¶
Constants ¶
View Source
const (
//ServerVersion is used to parse out the version of the API running
ServerVersion = `(Server Version:\s)+(v\d+.\d+.\d+)+`
)
Variables ¶
This section is empty.
Functions ¶
func AreAllReady ¶
AreAllReady returns a bool depending on cluster state
Types ¶
type Condition ¶
type Condition struct {
LastHeartbeatTime time.Time `json:"lastHeartbeatTime"`
LastTransitionTime time.Time `json:"lastTransitionTime"`
Message string `json:"message"`
Reason string `json:"reason"`
Status string `json:"status"`
Type string `json:"type"`
}
Condition contains various status information
type Info ¶
type Info struct {
ContainerRuntimeVersion string `json:"containerRuntimeVersion"`
KubeProxyVersion string `json:"kubeProxyVersion"`
KubeletProxyVersion string `json:"kubeletVersion"`
OperatingSystem string `json:"operatingSystem"`
}
Info contains information like what version the kubelet is running
type List ¶
type List struct {
Nodes []Node `json:"items"`
}
List is used to parse out Nodes from a list
type Metadata ¶
type Metadata struct {
Name string `json:"name"`
CreatedAt time.Time `json:"creationTimestamp"`
Labels map[string]string `json:"labels"`
Annotations map[string]string `json:"annotations"`
}
Metadata contains things like name and created at
type Node ¶
Node represents the kubernetes Node Resource
func GetByPrefix ¶ added in v0.9.0
GetByPrefix will return a []Node of all nodes that have a name that match the prefix
type Status ¶
type Status struct {
Info Info `json:"Info"`
NodeAddresses []Address `json:"addresses"`
Conditions []Condition `json:"conditions"`
}
Status parses information from the status key
func (*Status) GetAddressByType ¶
GetAddressByType will return the Address object for a given Kubernetes node
Click to show internal directories.
Click to hide internal directories.