flags

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidOutputType = "flags.invalid_output_type"
)

Variables

This section is empty.

Functions

func ErrorInvalidOutputType

func ErrorInvalidOutputType(invalidOutputType string) error

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

Jump to

Keyboard shortcuts

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