Documentation ¶
Overview ¶
Package readable provides types and utils for human readable output
Index ¶
Constants ¶
View Source
const ( LEVEL_0 = iota LEVEL_1 LEVEL_2 LEVEL_3 )
Indent level for PrefixWriter
Variables ¶
This section is empty.
Functions ¶
func AddHandlers ¶
func AddHandlers(h printers.PrintHandler)
func NewLocalPrinter ¶ added in v1.1.0
func NewLocalPrinter(printer kubeprinters.ResourcePrinter, tableGenerator *kubeprinters.HumanReadableGenerator, options kubeprinters.GenerateOptions) kubeprinters.ResourcePrinter
NewLocalPrinter creates a new local printer.
Types ¶
type PrefixWriter ¶
type PrefixWriter interface { // Write writes text with the specified indentation level. Write(level int, format string, a ...interface{}) // WriteLine writes line with the specified indentation level. WriteLine(level int, format string, a ...interface{}) }
PrefixWriter can write text at various indentation levels
func NewPrefixWriter ¶
func NewPrefixWriter(out io.Writer) PrefixWriter
NewPrefixWriter creates a new PrefixWriter.
type PrintFlags ¶
type PrintFlags struct { JSONYamlPrintFlags *genericclioptions.JSONYamlPrintFlags OutputFormat string }
func NewPrintFlags ¶
func NewPrintFlags() *PrintFlags
func (*PrintFlags) AddFlags ¶
func (p *PrintFlags) AddFlags(cmd *cobra.Command)
func (*PrintFlags) ToPrinter ¶
func (p *PrintFlags) ToPrinter(withKind, withNamespace bool) (kubeprinters.ResourcePrinter, error)
Click to show internal directories.
Click to hide internal directories.