Documentation ¶
Index ¶
- func OutputFormats() []string
- type Column
- type OutputFormat
- func (i OutputFormat) IsAOutputFormat() bool
- func (i OutputFormat) MarshalJSON() ([]byte, error)
- func (i OutputFormat) MarshalYAML() (interface{}, error)
- func (i OutputFormat) String() string
- func (i *OutputFormat) UnmarshalJSON(data []byte) error
- func (i *OutputFormat) UnmarshalYAML(unmarshal func(interface{}) error) error
- type PrintableProto
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputFormats ¶
func OutputFormats() []string
Types ¶
type OutputFormat ¶
type OutputFormat uint8
const ( OutputFormatTABLE OutputFormat = iota OutputFormatJSON OutputFormatYAML )
func OutputFormatString ¶
func OutputFormatString(s string) (OutputFormat, error)
OutputFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func OutputFormatValues ¶
func OutputFormatValues() []OutputFormat
OutputFormatValues returns all values of the enum
func (OutputFormat) IsAOutputFormat ¶
func (i OutputFormat) IsAOutputFormat() bool
IsAOutputFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (OutputFormat) MarshalJSON ¶
func (i OutputFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for OutputFormat
func (OutputFormat) MarshalYAML ¶
func (i OutputFormat) MarshalYAML() (interface{}, error)
MarshalYAML implements a YAML Marshaler for OutputFormat
func (OutputFormat) String ¶
func (i OutputFormat) String() string
func (*OutputFormat) UnmarshalJSON ¶
func (i *OutputFormat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for OutputFormat
func (*OutputFormat) UnmarshalYAML ¶
func (i *OutputFormat) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements a YAML Unmarshaler for OutputFormat
type PrintableProto ¶
func (PrintableProto) MarshalJSON ¶
func (p PrintableProto) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.