Documentation ¶
Index ¶
- type ByteSize
- func (bs ByteSize) Get() interface{}
- func (bs ByteSize) MarshalJSON() ([]byte, error)
- func (bs ByteSize) MarshalYAML() (interface{}, error)
- func (bs *ByteSize) Set(s string) error
- func (bs ByteSize) String() string
- func (bs *ByteSize) UnmarshalJSON(val []byte) error
- func (bs *ByteSize) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (bs ByteSize) Val() int
- type CSV
- type FlagSetWithSkip
- func (f *FlagSetWithSkip) BoolVar(p *bool, name string, value bool, usage string)
- func (f *FlagSetWithSkip) DurationVar(p *time.Duration, name string, value time.Duration, usage string)
- func (f *FlagSetWithSkip) IntVar(p *int, name string, value int, usage string)
- func (f *FlagSetWithSkip) StringVar(p *string, name string, value string, usage string)
- func (f *FlagSetWithSkip) ToFlagSet() *flag.FlagSet
- func (f *FlagSetWithSkip) Var(value flag.Value, name string, usage string)
- type LabelSet
- type ListValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize uint64
ByteSize is a flag parsing compatibility type for constructing human friendly sizes. It implements flag.Value & flag.Getter.
func (ByteSize) MarshalJSON ¶
Use a string representation for consistency
func (ByteSize) MarshalYAML ¶
MarshalYAML implements yaml.Marshaller. Use a string representation for consistency
func (*ByteSize) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarsal interface to work with JSON.
func (*ByteSize) UnmarshalYAML ¶
UnmarshalYAML the Unmarshaler interface of the yaml pkg.
type CSV ¶ added in v3.2.0
type CSV[T ListValue] []T
StringSliceCSV is a slice of strings that is parsed from a comma-separated string It implements flag.Value and yaml Marshalers
func (CSV[T]) MarshalYAML ¶ added in v3.2.0
MarshalYAML implements yaml.Marshaler.
func (*CSV[T]) UnmarshalYAML ¶ added in v3.2.0
UnmarshalYAML implements yaml.Unmarshaler.
type FlagSetWithSkip ¶
func NewFlagSetWithSkip ¶
func NewFlagSetWithSkip(f *flag.FlagSet, skip []string) *FlagSetWithSkip
func (*FlagSetWithSkip) BoolVar ¶
func (f *FlagSetWithSkip) BoolVar(p *bool, name string, value bool, usage string)
func (*FlagSetWithSkip) DurationVar ¶
func (*FlagSetWithSkip) IntVar ¶
func (f *FlagSetWithSkip) IntVar(p *int, name string, value int, usage string)
func (*FlagSetWithSkip) StringVar ¶
func (f *FlagSetWithSkip) StringVar(p *string, name string, value string, usage string)
func (*FlagSetWithSkip) ToFlagSet ¶
func (f *FlagSetWithSkip) ToFlagSet() *flag.FlagSet
type LabelSet ¶
LabelSet is a labelSet that can be used as a flag.
func (LabelSet) MarshalYAML ¶
MarshalYAML implements yaml.Marshaller.
func (*LabelSet) UnmarshalYAML ¶
UnmarshalYAML the Unmarshaler interface of the yaml pkg.