Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoTemplatePrinter ¶
type GoTemplatePrinter struct {
// contains filtered or unexported fields
}
func NewGoTemplatePrinter ¶
func NewGoTemplatePrinter(tmpl []byte) (*GoTemplatePrinter, error)
func (*GoTemplatePrinter) AllowMissingKeys ¶
func (p *GoTemplatePrinter) AllowMissingKeys(allow bool)
AllowMissingKeys tells the template engine if missing keys are allowed.
type JSONPathPrinter ¶
type JSONPathPrinter struct { JSONPath *jsonpath.JSONPath // contains filtered or unexported fields }
func NewJSONPathPrinter ¶
func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error)
func (*JSONPathPrinter) AllowMissingKeys ¶
func (j *JSONPathPrinter) AllowMissingKeys(allow bool)
AllowMissingKeys tells the template engine if missing keys are allowed.
func (*JSONPathPrinter) EnableJSONOutput ¶
func (j *JSONPathPrinter) EnableJSONOutput(enable bool)
EnableJSONOutput enables JSON output.
type JSONPrinter ¶
type JSONPrinter struct{}
type JSONPrinterOptions ¶
type JSONPrinterOptions struct {
Template string
}
type PrintOptions ¶
PrintOptions struct defines a struct for various print options
type Printer ¶
type Printer interface { // Print receives an interface, formats it and prints it. Print(*iostreams.IOStreams, interface{}) error }
Printer is an interface that knows how to print interfaces.
type PrinterFunc ¶
PrinterFunc is a function that can print interfaces
type TablePrinter ¶
type TablePrinter interface { IsTTY() bool AddField(string, func(int, string) string, func(string) string) EndRow() Render() error }
func NewTablePrinter ¶
func NewTablePrinter(io *iostreams.IOStreams) TablePrinter
func NewTablePrinterWithOptions ¶
func NewTablePrinterWithOptions(io *iostreams.IOStreams, opts TablePrinterOptions) TablePrinter
type TablePrinterOptions ¶
type TablePrinterOptions struct {
IsTTY bool
}
Click to show internal directories.
Click to hide internal directories.