Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
IOStreams genericiooptions.IOStreams
OutputFormat OutputFormat
}
Options contains configuration for creating a printer.
type OutputFormat ¶
type OutputFormat string
OutputFormat specifies the output format for printing results.
const ( // JSON specifies JSON output format. JSON OutputFormat = "json" // Table specifies table output format. Table OutputFormat = "table" // YAML specifies YAML output format. YAML OutputFormat = "yaml" )
func (*OutputFormat) Set ¶
func (f *OutputFormat) Set(v string) error
Set implements the pflag.Value interface for OutputFormat.
func (*OutputFormat) String ¶
func (f *OutputFormat) String() string
func (*OutputFormat) Type ¶
func (f *OutputFormat) Type() string
Type returns the type name for the flag value.
Click to show internal directories.
Click to hide internal directories.