describe

package
v0.0.0-...-1afc026 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Format string

Format indicates the output format can be yaml / yml / json or empty as default default will be table

Functions

func Core

func Core(info *corepb.CoreInfo)

Core function will describe a coreinfo output format can be json or yaml or table

func Images

func Images(msgs ...*corepb.ListImageMessage)

Images describes a list of images output format can be json or yaml or table

func Networks

func Networks(networks ...*corepb.Network)

Networks describes a list of Network 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 Nodes

func Nodes(nodes <-chan *corepb.Node, stream bool)

Nodes describes a list of Node output format can be json or yaml or table

func NodesWithInfo

func NodesWithInfo(nodes <-chan *corepb.Node, stream bool)

NodesWithInfo describes a list of Node with their info

func PodCapacity

func PodCapacity(total int64, capacityMap map[string]int64)

PodCapacity describes the capacity remained based on a given specification. output format can be json or yaml or table

func Pods

func Pods(pods ...*corepb.Pod)

Pods describes a list of Pod output format can be json or yaml or table

func ToNodeChan

func ToNodeChan(nodes ...*corepb.Node) chan *corepb.Node

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 ToResourcePrecent(resource *corepb.NodeResource) (map[string]float64, map[string]float64, error)

func WorkloadStatuses

func WorkloadStatuses(workloadStatuses ...*corepb.WorkloadStatus)

WorkloadStatuses describes a list of WorkloadStatus output format can be json or yaml or table

func Workloads

func Workloads(workloads ...*corepb.Workload)

Workloads describes a list of Workload output format can be json or yaml or table

func WorkloadsStatistics

func WorkloadsStatistics(workloads ...*corepb.Workload)

WorkloadsStatistics describes the statistics of the Workloads

Types

This section is empty.

Jump to

Keyboard shortcuts

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