Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrintOptions ¶
type PrintOptions struct {
NoHeaders bool
}
PrintOptions holds various options used in ResourcePrinters.
type ResourcePrinter ¶
ResourcePrinter writes an output of API resources.
type TablePrinter ¶
type TablePrinter struct {
// contains filtered or unexported fields
}
TablePrinter prints human-readable table structures.
func NewTablePrinter ¶
func NewTablePrinter(o PrintOptions) *TablePrinter
NewTablePrinter creates a new human-readable table printer.
func (*TablePrinter) PrintResource ¶
func (p *TablePrinter) PrintResource(r resources.Formatter, output io.Writer)
PrintResource executes the printer and creates an output.
Click to show internal directories.
Click to hide internal directories.