Documentation
¶
Index ¶
- func PrintActor(actor *ateapipb.Actor, format string) error
- func PrintActorTemplate(template *ateapipb.ActorTemplate, format string) error
- func PrintActorTemplates(templates []*ateapipb.ActorTemplate, format string) error
- func PrintActorTemplatesTo(out io.Writer, templates []*ateapipb.ActorTemplate, format string) error
- func PrintActors(actors []*ateapipb.Actor, format string) error
- func PrintActorsTo(out io.Writer, actors []*ateapipb.Actor, format string) error
- func PrintAtespace(atespace *ateapipb.Atespace, format string) error
- func PrintAtespaces(atespaces []*ateapipb.Atespace, format string) error
- func PrintAtespacesTo(out io.Writer, atespaces []*ateapipb.Atespace, format string) error
- func PrintTag(tag *ateapipb.Tag, format string) error
- func PrintTags(tags []*ateapipb.Tag, format string) error
- func PrintTagsTo(out io.Writer, tags []*ateapipb.Tag, format string) error
- func PrintWorkerTop(items []*WorkerTopItem, format string) error
- func PrintWorkerTopJSON(out io.Writer, items []*WorkerTopItem) error
- func PrintWorkerTopTable(out io.Writer, items []*WorkerTopItem) error
- func PrintWorkerTopTo(out io.Writer, items []*WorkerTopItem, format string) error
- func PrintWorkerTopYAML(out io.Writer, items []*WorkerTopItem) error
- func PrintWorkers(workers []*ateapipb.Worker, format string) error
- func PrintWorkersTo(out io.Writer, workers []*ateapipb.Worker, format string) error
- func WorkerOccupancy(worker *ateapipb.Worker) string
- type WorkerTopItem
- type WorkerTopList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintActor ¶
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 ¶
PrintActorTemplatesTo prints a slice of actor templates to the provided writer.
func PrintActors ¶
PrintActors prints a slice of actors to stdout in the requested format.
func PrintActorsTo ¶
PrintActorsTo prints a slice of actors to the provided writer.
func PrintAtespace ¶
PrintAtespace prints a single atespace in the requested format.
func PrintAtespaces ¶
PrintAtespaces prints a slice of atespaces to stdout in the requested format.
func PrintAtespacesTo ¶
PrintAtespacesTo prints a slice of atespaces to the provided writer.
func PrintTagsTo ¶
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 ¶
PrintWorkers prints a slice of workers to stdout in the requested format.
func PrintWorkersTo ¶
PrintWorkersTo prints a slice of workers to the provided writer.
func WorkerOccupancy ¶
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.