Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides simplified access to the k8s API.
type Node ¶
type Node struct {
Metadata struct {
Name string `json:"name"`
} `json:"metadata"`
}
Node represents an individual k8s node.
type NodeList ¶
type NodeList struct {
Items []Node `json:"items"`
}
NodeList represents the list of nodes in the k8s cluster.
type NodePodsList ¶
type NodePodsList struct {
Pods []Pod `json:"pods"`
}
NodePodsList represents the list of pods scheduled on a k8s node.
type Option ¶
type Option func(*Client)
Option allows modification of the k8s API client.
type PvcStats ¶
type PvcStats struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
AvailableBytes float64 `json:"availableBytes"`
CapacityBytes float64 `json:"capacityBytes"`
UsedBytes float64 `json:"usedBytes"`
}
func GetNodePvcUsage ¶
func GetNodePvcUsageCtx ¶
func GetPvcUsage ¶
type Volume ¶
type Volume struct {
Time *time.Time `json:"time"`
AvailableBytes float64 `json:"availableBytes"`
CapacityBytes float64 `json:"capacityBytes"`
UsedBytes float64 `json:"usedBytes"`
InodesFree float64 `json:"inodesFree"`
Inodes float64 `json:"inodes"`
InodesUsed float64 `json:"inodesUsed"`
Name string `json:"name"`
PvcRef *PvcRef `json:"pvcRef"`
}
Volume represents information about a volume attached to a Pod.
Click to show internal directories.
Click to hide internal directories.