Documentation
¶
Index ¶
- Variables
- func Core(info *corepb.CoreInfo)
- func Images(msgs ...*corepb.ListImageMessage)
- func Networks(networks ...*corepb.Network)
- func NodeResources(resources chan *corepb.NodeResource, stream bool)
- func NodeStatusMessage(ms ...*corepb.NodeStatusStreamMessage)
- func Nodes(nodes <-chan *corepb.Node, stream bool)
- func NodesWithInfo(nodes <-chan *corepb.Node, stream bool)
- func PodCapacity(total int64, capacityMap map[string]int64)
- func Pods(pods ...*corepb.Pod)
- func ToNodeChan(nodes ...*corepb.Node) chan *corepb.Node
- func ToNodeResourceChan(resources ...*corepb.NodeResource) chan *corepb.NodeResource
- func ToResourcePrecent(resource *corepb.NodeResource) (map[string]float64, map[string]float64, error)
- func WorkloadStatuses(workloadStatuses ...*corepb.WorkloadStatus)
- func Workloads(workloads ...*corepb.Workload)
- func WorkloadsStatistics(workloads ...*corepb.Workload)
Constants ¶
This section is empty.
Variables ¶
var Format string
Format indicates the output format can be yaml / yml / json or empty as default default will be table
Functions ¶
func Images ¶
func Images(msgs ...*corepb.ListImageMessage)
Images describes a list of images output format can be json or yaml or table
func NodeResources ¶
func NodeResources(resources chan *corepb.NodeResource, stream bool)
NodeResources describes a list of NodeResource output format can be json or yaml or table
func NodeStatusMessage ¶
func NodeStatusMessage(ms ...*corepb.NodeStatusStreamMessage)
NodeStatusMessage describes NodeStatusStreamMessage in json / yaml, or just a line in stdout
func NodesWithInfo ¶
NodesWithInfo describes a list of Node with their info
func PodCapacity ¶
PodCapacity describes the capacity remained based on a given specification. output format can be json or yaml or table
func ToNodeChan ¶
ToNodeChan is to be rewritten using generic
func ToNodeResourceChan ¶
func ToNodeResourceChan(resources ...*corepb.NodeResource) chan *corepb.NodeResource
ToNodeResourceChan is to be rewritten using generic
func ToResourcePrecent ¶
func WorkloadStatuses ¶
func WorkloadStatuses(workloadStatuses ...*corepb.WorkloadStatus)
WorkloadStatuses describes a list of WorkloadStatus output format can be json or yaml or table
func WorkloadsStatistics ¶
WorkloadsStatistics describes the statistics of the Workloads
Types ¶
This section is empty.