describe

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Format string

Format selects the output format: json, yaml, or empty for a table.

Functions

func Core

func Core(info *corepb.CoreInfo)

func Images

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

func Networks

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

func NodeResource added in v0.1.4

func NodeResource(ctx context.Context, resource *corepb.NodeResource)

NodeResource describes one node's resource.

func NodeResources

func NodeResources(ctx context.Context, resources <-chan *corepb.NodeResource, stream bool, keep NodeResourceFilter)

func NodeStatusMessage

func NodeStatusMessage(ctx context.Context, ms ...*corepb.NodeStatusStreamMessage)

NodeStatusMessage describes node status messages as json, yaml or log lines.

func Nodes

func Nodes(showInfo bool, nodes ...*corepb.Node)

Nodes describes nodes a command already holds.

func NodesStream added in v0.1.4

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

NodesStream describes nodes as they arrive, one table per node when stream is set.

func PodCapacity

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

PodCapacity describes the capacity left for a given specification.

func Pods

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

func ToResourcePercent

func ToResourcePercent(resource *corepb.NodeResource) (cpumem, storage map[string]float64, err error)

ToResourcePercent reports node usage as a fraction of capacity, per resource.

func WorkloadStatuses

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

func Workloads

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

func WorkloadsStatistics

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

WorkloadsStatistics describes the aggregated resource use of workloads.

Types

type NodeResourceFilter added in v0.1.5

type NodeResourceFilter func(cpumem, storage map[string]float64) bool

Jump to

Keyboard shortcuts

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