printer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintActor

func PrintActor(actor *ateapipb.Actor, format string) error

PrintActor prints a single actor in the requested format.

func PrintActorTemplate

func PrintActorTemplate(template *ateapipb.ActorTemplate, format string) error

PrintActorTemplate prints a single actor template in the requested format.

func PrintActorTemplates

func PrintActorTemplates(templates []*ateapipb.ActorTemplate, format string) error

PrintActorTemplates prints a slice of actor templates to stdout in the requested format.

func PrintActorTemplatesTo

func PrintActorTemplatesTo(out io.Writer, templates []*ateapipb.ActorTemplate, format string) error

PrintActorTemplatesTo prints a slice of actor templates to the provided writer.

func PrintActors

func PrintActors(actors []*ateapipb.Actor, format string) error

PrintActors prints a slice of actors to stdout in the requested format.

func PrintActorsTo

func PrintActorsTo(out io.Writer, actors []*ateapipb.Actor, format string) error

PrintActorsTo prints a slice of actors to the provided writer.

func PrintAtespace

func PrintAtespace(atespace *ateapipb.Atespace, format string) error

PrintAtespace prints a single atespace in the requested format.

func PrintAtespaces

func PrintAtespaces(atespaces []*ateapipb.Atespace, format string) error

PrintAtespaces prints a slice of atespaces to stdout in the requested format.

func PrintAtespacesTo

func PrintAtespacesTo(out io.Writer, atespaces []*ateapipb.Atespace, format string) error

PrintAtespacesTo prints a slice of atespaces to the provided writer.

func PrintTag

func PrintTag(tag *ateapipb.Tag, format string) error

PrintTag prints a single tag to stdout.

func PrintTags

func PrintTags(tags []*ateapipb.Tag, format string) error

PrintTags prints tags to stdout in the requested format.

func PrintTagsTo

func PrintTagsTo(out io.Writer, tags []*ateapipb.Tag, format string) error

PrintTagsTo prints a slice of tags to the provided writer.

func PrintWorkerTop

func PrintWorkerTop(items []*WorkerTopItem, format string) error

PrintWorkerTop prints a slice of worker top items to stdout in the requested format.

func PrintWorkerTopJSON

func PrintWorkerTopJSON(out io.Writer, items []*WorkerTopItem) error

PrintWorkerTopJSON prints worker top items as JSON.

func PrintWorkerTopTable

func PrintWorkerTopTable(out io.Writer, items []*WorkerTopItem) error

PrintWorkerTopTable prints worker top items as a formatted table.

func PrintWorkerTopTo

func PrintWorkerTopTo(out io.Writer, items []*WorkerTopItem, format string) error

PrintWorkerTopTo prints a slice of worker top items to the provided writer.

func PrintWorkerTopYAML

func PrintWorkerTopYAML(out io.Writer, items []*WorkerTopItem) error

PrintWorkerTopYAML prints worker top items as YAML.

func PrintWorkers

func PrintWorkers(workers []*ateapipb.Worker, format string) error

PrintWorkers prints a slice of workers to stdout in the requested format.

func PrintWorkersTo

func PrintWorkersTo(out io.Writer, workers []*ateapipb.Worker, format string) error

PrintWorkersTo prints a slice of workers to the provided writer.

func WorkerOccupancy

func WorkerOccupancy(worker *ateapipb.Worker) string

WorkerOccupancy is how full a Worker is, as a count against its limit. A count rather than the Actors themselves: a listing does not carry them, and naming them all would be unreadable long before a Worker is full.

Types

type WorkerTopItem

type WorkerTopItem struct {
	Pod       string `json:"pod" yaml:"pod"`
	Pool      string `json:"pool" yaml:"pool"`
	Class     string `json:"class,omitempty" yaml:"class,omitempty"`
	Status    string `json:"status" yaml:"status"`
	CPU       string `json:"cpu" yaml:"cpu"`
	Memory    string `json:"memory" yaml:"memory"`
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
}

WorkerTopItem represents real-time hardware resource utilization for a worker pod.

type WorkerTopList

type WorkerTopList struct {
	Workers []*WorkerTopItem `json:"workers" yaml:"workers"`
}

WorkerTopList wraps worker top items for JSON/YAML output.

Jump to

Keyboard shortcuts

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