Documentation ¶
Index ¶
- func DnsSearchListVar(values *[]string, names []string, usage string)
- func HostListVar(values *[]string, names []string, usage string)
- func IPListVar(values *[]string, names []string, usage string)
- func IPVar(value *net.IP, names []string, defaultValue, usage string)
- func LabelListVar(values *[]string, names []string, usage string)
- func ListVar(values *[]string, names []string, usage string)
- func ParseEnvFile(filename string) ([]string, error)
- func UlimitMapVar(values map[string]*ulimit.Ulimit, names []string, usage string)
- func ValidateAttach(val string) (string, error)
- func ValidateDnsSearch(val string) (string, error)
- func ValidateEnv(val string) (string, error)
- func ValidateExtraHost(val string) (string, error)
- func ValidateIPAddress(val string) (string, error)
- func ValidateLabel(val string) (string, error)
- func ValidateLink(val string) (string, error)
- func ValidateMACAddress(val string) (string, error)
- func ValidatePath(val string) (string, error)
- type ErrBadEnvVariable
- type IpOpt
- type ListOpts
- type UlimitOpt
- type ValidatorFctListType
- type ValidatorFctType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseEnvFile ¶
Read in a line delimited file with environment variables enumerated
func UlimitMapVar ¶ added in v0.3.0
func ValidateDnsSearch ¶
Validates domain for resolvconf search configuration. A zero length domain is represented by .
Types ¶
type ErrBadEnvVariable ¶
type ErrBadEnvVariable struct {
// contains filtered or unexported fields
}
func (ErrBadEnvVariable) Error ¶
func (e ErrBadEnvVariable) Error() string
type IpOpt ¶
type ListOpts ¶
type ListOpts struct {
// contains filtered or unexported fields
}
ListOpts type
func NewListOpts ¶
func NewListOpts(validator ValidatorFctType) ListOpts
func (*ListOpts) Delete ¶
Delete remove the given element from the slice.
func (*ListOpts) Get ¶
Get checks the existence of the given key.
func (*ListOpts) GetAll ¶
GetAll returns the values' slice. FIXME: Can we remove this?
func (*ListOpts) GetMap ¶
GetMap returns the content of values in a map in order to avoid duplicates. FIXME: can we remove this?
func (*ListOpts) Len ¶
Len returns the amount of element in the slice.
func (*ListOpts) Set ¶
Set validates if needed the input value and add it to the internal slice.
type UlimitOpt ¶ added in v0.3.0
type UlimitOpt struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.