table

package
v0.36.0-flux.11 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorAdapter

type CollectorAdapter struct {
	// contains filtered or unexported fields
}

CollectorAdapter wraps the ResourceStatusCollector and provides a set of functions that matches the interfaces needed by the BaseTablePrinter.

func (*CollectorAdapter) LatestStatus

func (ca *CollectorAdapter) LatestStatus() *ResourceState

type Printer

type Printer struct {
	IOStreams genericclioptions.IOStreams
	PrintData *printer.PrintData
}

Printer is an implementation of the Printer interface that outputs status information about resources in a table format with in-place updates.

func NewPrinter

func NewPrinter(ioStreams genericclioptions.IOStreams, printData *printer.PrintData) *Printer

NewPrinter returns a new instance of the tablePrinter.

func (*Printer) Print

func (t *Printer) Print(ch <-chan event.Event, identifiers object.ObjMetadataSet,
	cancelFunc collector.ObserverFunc) error

Print take an event channel and outputs the status events on the channel until the channel is closed .

type ResourceInfo

type ResourceInfo struct {
	// contains filtered or unexported fields
}

func (*ResourceInfo) Identifier

func (r *ResourceInfo) Identifier() object.ObjMetadata

func (*ResourceInfo) ResourceStatus

func (r *ResourceInfo) ResourceStatus() *pe.ResourceStatus

func (*ResourceInfo) SubResources

func (r *ResourceInfo) SubResources() []table.Resource

type ResourceState

type ResourceState struct {
	// contains filtered or unexported fields
}

func (*ResourceState) Error

func (rss *ResourceState) Error() error

func (*ResourceState) Resources

func (rss *ResourceState) Resources() []table.Resource

Jump to

Keyboard shortcuts

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