Documentation ¶
Index ¶
- Constants
- func ErrorInvalidOutputType(invalidOutputType string) error
- func OutputTypeStrings() []string
- func OutputTypeStringsExcluding(outputType OutputType) []string
- type OutputType
- func (t OutputType) MarshalBinary() ([]byte, error)
- func (t OutputType) MarshalText() ([]byte, error)
- func (t *OutputType) Set(value string) error
- func (t OutputType) String() string
- func (t OutputType) Type() string
- func (t *OutputType) UnmarshalBinary(data []byte) error
- func (t *OutputType) UnmarshalText(text []byte) error
Constants ¶
View Source
const (
ErrInvalidOutputType = "flags.invalid_output_type"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorInvalidOutputType ¶
func OutputTypeStrings ¶
func OutputTypeStrings() []string
func OutputTypeStringsExcluding ¶ added in v0.37.0
func OutputTypeStringsExcluding(outputType OutputType) []string
Types ¶
type OutputType ¶
type OutputType int
const ( UnknownOutputType OutputType = iota PrettyOutputType JSONOutputType YAMLOutputType )
func OutputTypeFromString ¶
func OutputTypeFromString(s string) OutputType
func (OutputType) MarshalBinary ¶
func (t OutputType) MarshalBinary() ([]byte, error)
MarshalBinary satisfies BinaryMarshaler
func (OutputType) MarshalText ¶
func (t OutputType) MarshalText() ([]byte, error)
MarshalText satisfies TextMarshaler
func (*OutputType) Set ¶
func (t *OutputType) Set(value string) error
func (OutputType) String ¶
func (t OutputType) String() string
func (OutputType) Type ¶
func (t OutputType) Type() string
func (*OutputType) UnmarshalBinary ¶
func (t *OutputType) UnmarshalBinary(data []byte) error
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*OutputType) UnmarshalText ¶
func (t *OutputType) UnmarshalText(text []byte) error
UnmarshalText satisfies TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.