Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OutputPrinterYAML = OutputPrinter("yaml") OutputPrinterJSON = OutputPrinter("json") OutputPrinterTable = OutputPrinter("table") SupportedPrinters = []OutputPrinter{OutputPrinterYAML, OutputPrinterJSON, OutputPrinterTable} ErrUnknownPrinterOutput = errors.New("unknown printer output type. Supported types are yaml, json, table") ErrTableRequired = errors.New("table printer can only be used with a metav1.Table") )
Functions ¶
Types ¶
type ObjectPrinter ¶
func New ¶
func New(outputPrinter OutputPrinter) (ObjectPrinter, error)
type OutputPrinter ¶
type OutputPrinter string
Click to show internal directories.
Click to hide internal directories.