CollectorAdapter wraps the ResourceStatusCollector and provides a set of functions that matches the interfaces needed by the BaseTablePrinter.
type CollectorAdapter struct {
// contains filtered or unexported fields
}
func (ca *CollectorAdapter) LatestStatus() *ResourceState
Printer is an implementation of the Printer interface that outputs status information about resources in a table format with in-place updates.
type Printer struct { IOStreams genericclioptions.IOStreams PrintData *printer.PrintData }
func NewPrinter(ioStreams genericclioptions.IOStreams, printData *printer.PrintData) *Printer
NewPrinter returns a new instance of the tablePrinter.
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 struct {
// contains filtered or unexported fields
}
func (r *ResourceInfo) Identifier() object.ObjMetadata
func (r *ResourceInfo) ResourceStatus() *pe.ResourceStatus
func (r *ResourceInfo) SubResources() []table.Resource
type ResourceState struct {
// contains filtered or unexported fields
}
func (rss *ResourceState) Error() error
func (rss *ResourceState) Resources() []table.Resource