Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedOutputFormatsForHelp ¶
func AllowedOutputFormatsForHelp() []string
func Describe ¶
func Describe(w io.Writer, pairs []*DescriberKV)
Describe writes the key-value paris to the writer. It handles things like properly writing special data types like Tables.
Types ¶
type DefaultEventFetcher ¶
type DefaultEventFetcher struct {
// contains filtered or unexported fields
}
func NewDefaultEventFetcher ¶
func NewDefaultEventFetcher(factory common.Factory) *DefaultEventFetcher
func (DefaultEventFetcher) FetchEventsFor ¶
type DescriberKV ¶
DescriberKV stores key-value pairs that are used with Describing a resource.
type DescriptionPrinter ¶
type DescriptionPrinter struct { PrinterOptions // contains filtered or unexported fields }
type JSONPrinter ¶
type JSONPrinter struct {
Delegate *printers.OmitManagedFieldsPrinter
}
func NewJSONPrinter ¶
func NewJSONPrinter() *JSONPrinter
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatWide OutputFormat = "wide" OutputFormatJSON OutputFormat = "json" OutputFormatYAML OutputFormat = "yaml" OutputFormatGraph OutputFormat = "graph" OutputFormatTable OutputFormat = "" )
func ValidateAndReturnOutputFormat ¶
func ValidateAndReturnOutputFormat(format string) (OutputFormat, error)
type Printer ¶
func NewPrinter ¶
func NewPrinter(options PrinterOptions) Printer
type PrinterOptions ¶
type PrinterOptions struct { OutputFormat OutputFormat Description bool Clock clock.Clock EventFetcher eventFetcher }
type Table ¶
type TablePrinter ¶
type TablePrinter struct { PrinterOptions // contains filtered or unexported fields }
type YAMLPrinter ¶
type YAMLPrinter struct {
Delegate *printers.OmitManagedFieldsPrinter
}
func NewYAMLPrinter ¶
func NewYAMLPrinter() *YAMLPrinter
Click to show internal directories.
Click to hide internal directories.