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 ¶ added in v0.28.0
type Printer struct {
IOStreams genericclioptions.IOStreams
}
Printer is an implementation of the Printer interface that outputs status information about resources in a table format with in-place updates.
func NewPrinter ¶ added in v0.28.0
func NewPrinter(ioStreams genericclioptions.IOStreams) *Printer
NewPrinter returns a new instance of the tablePrinter.
func (*Printer) Print ¶ added in v0.28.0
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
Click to show internal directories.
Click to hide internal directories.