printers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePrinter

func CreatePrinter(printerType string, collector *collector.ResourceStatusCollector,
	ioStreams genericclioptions.IOStreams) (print.Printer, error)

CreatePrinter return an implementation of the Printer interface. The actual implementation is based on the printerType requested.

func NewTablePrinter

func NewTablePrinter(collector *collector.ResourceStatusCollector,
	ioStreams genericclioptions.IOStreams) *tablePrinter

NewTablePrinter returns a new instance of the tablePrinter. The passed in collector is the source of data to be printed, and the writer is where the printer will send the output.

Types

type CollectorAdapter added in v0.7.0

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 added in v0.7.0

func (ca *CollectorAdapter) LatestStatus() *ResourceState

type ResourceInfo added in v0.7.0

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

func (*ResourceInfo) Identifier added in v0.7.0

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

func (*ResourceInfo) ResourceStatus added in v0.7.0

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

func (*ResourceInfo) SubResources added in v0.7.0

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

type ResourceState added in v0.7.0

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

func (*ResourceState) Error added in v0.8.0

func (rss *ResourceState) Error() error

func (*ResourceState) Resources added in v0.7.0

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

Jump to

Keyboard shortcuts

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