printer

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTablePrinter

func NewTablePrinter(o io.Writer, minWidth, tabWidth, padding int, padChar byte) *printer

NewTablePrinter creates a printer instance, and uses to format output with table.

Types

type PrintFlags

type PrintFlags struct {
	JSONYamlFlags *genericclioptions.JSONYamlPrintFlags
	JSONPathFlags *genericclioptions.JSONPathPrintFlags
}

func NewPrintFlags

func NewPrintFlags() *PrintFlags

func (*PrintFlags) AddFlags

func (p *PrintFlags) AddFlags(c *cobra.Command)

func (*PrintFlags) AllowedFormats

func (p *PrintFlags) AllowedFormats() []string

AllowedFormats is the list of formats in which data can be displayed

func (*PrintFlags) ToPrinter

func (p *PrintFlags) ToPrinter(output string) (printers.ResourcePrinter, error)

Jump to

Keyboard shortcuts

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