Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValues ¶
func DefaultValues(rs ...Registerer)
DefaultValues initiates a set of configs (Registerers) with their defaults.
Types ¶
type CIDRSliceCSV ¶
type CIDRSliceCSV []CIDR
CIDRSliceCSV is a slice of CIDRs that is parsed from a comma-separated string. It implements flag.Value and yaml Marshalers.
func (CIDRSliceCSV) MarshalYAML ¶
func (c CIDRSliceCSV) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler.
func (*CIDRSliceCSV) UnmarshalYAML ¶
func (c *CIDRSliceCSV) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler.
type Registerer ¶
Registerer is a thing that can RegisterFlags
type Secret ¶
type Secret struct {
Value string
}
func (Secret) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Secret) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings that implements flag.Value
Click to show internal directories.
Click to hide internal directories.