package opts
import "github.com/docker/docker/opts"
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
- func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt
- func (o *IpOpt) Set(val string) error
- func (o *IpOpt) String() string
- type ListOpts
- func NewListOpts(validator ValidatorFctType) ListOpts
- func (opts *ListOpts) Delete(key string)
- func (opts *ListOpts) Get(key string) bool
- func (opts *ListOpts) GetAll() []string
- func (opts *ListOpts) GetMap() map[string]struct{}
- func (opts *ListOpts) Len() int
- func (opts *ListOpts) Set(value string) error
- func (opts *ListOpts) String() string
- type UlimitOpt
- func NewUlimitOpt(ref map[string]*ulimit.Ulimit) *UlimitOpt
- func (o *UlimitOpt) GetList() []*ulimit.Ulimit
- func (o *UlimitOpt) Set(val string) error
- func (o *UlimitOpt) String() string
- type ValidatorFctListType
- type ValidatorFctType
Functions ¶
func DnsSearchListVar ¶
func HostListVar ¶
func IPListVar ¶
func IPVar ¶
func LabelListVar ¶
func ListVar ¶
func ParseEnvFile ¶
Read in a line delimited file with environment variables enumerated
func UlimitMapVar ¶
func ValidateAttach ¶
func ValidateDnsSearch ¶
Validates domain for resolvconf search configuration. A zero length domain is represented by .
func ValidateEnv ¶
func ValidateExtraHost ¶
func ValidateIPAddress ¶
func ValidateLabel ¶
func ValidateLink ¶
func ValidateMACAddress ¶
func ValidatePath ¶
Types ¶
type ErrBadEnvVariable ¶
type ErrBadEnvVariable struct {
// contains filtered or unexported fields
}
func (ErrBadEnvVariable) Error ¶
func (e ErrBadEnvVariable) Error() string
type IpOpt ¶
func NewIpOpt ¶
func (*IpOpt) Set ¶
func (*IpOpt) String ¶
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.
func (*ListOpts) String ¶
type UlimitOpt ¶
type UlimitOpt struct {
// contains filtered or unexported fields
}
func NewUlimitOpt ¶
func (*UlimitOpt) GetList ¶
func (*UlimitOpt) Set ¶
func (*UlimitOpt) String ¶
type ValidatorFctListType ¶
type ValidatorFctType ¶
Validators
Source Files ¶
envfile.go ip.go opts.go ulimit.go
- Version
- v1.6.0-rc2
- Published
- Mar 25, 2015
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 20 minutes ago –
Tools for package owners.