package opts
import "github.com/docker/docker/pkg/opts"
Index ¶
- func ValidateAttach(val string) (string, error)
- func ValidateEnv(val string) (string, error)
- func ValidateIp4Address(val string) (string, error)
- func ValidateLink(val string) (string, error)
- func ValidatePath(val string) (string, error)
- 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 ValidatorFctType
Functions ¶
func ValidateAttach ¶
func ValidateEnv ¶
func ValidateIp4Address ¶
func ValidateLink ¶
func ValidatePath ¶
Types ¶
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 ValidatorFctType ¶
Validators
Source Files ¶
- Version
- v0.9.0
- Published
- Mar 10, 2014
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.