...

Package table

import "sigs.k8s.io/cli-utils/cmd/status/printers/table"
Overview
Index

Overview ▾

type CollectorAdapter

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 (*CollectorAdapter) LatestStatus

func (ca *CollectorAdapter) LatestStatus() *ResourceState

type Printer

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

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