# Functions
AddFlags adds all command line flags that will be used by Parse to the FlagSet.
ConvertKVStringsToMap converts ["key=value"] to {"key":"value"}.
ConvertKVStringsToMapWithNil converts ["key=value"] to {"key":"value"} but set unset keys to nil - meaning the ones with no "=" in them.
NewNamedRuntimeOpt creates a new RuntimeOpt.
NewThrottledeviceOpt creates a new ThrottledeviceOpt.
NewUlimitOpt creates a new UlimitOpt.
NewWeightdeviceOpt creates a new WeightdeviceOpt.
Parse parses the args for the specified command and generates a Config, a HostConfig and returns them with the specified command.
ParseDevice parses a device mapping string to a container.DeviceMapping struct.
ParseEnvFile reads a file with environment variables enumerated by lines
``Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore) from the characters defined in Portable Character Set and do not begin with a digit.
ParseLink parses and validates the specified string as a link format (name:alias).
ParseRestartPolicy returns the parsed policy or an error indicating what is incorrect.
ReadKVStrings reads a file of line terminated key=value pairs, and overrides any keys present in the file with additional pairs specified in the override parameter.
ValidateAttach validates that the specified string is a valid attach option.
ValidateDevice validates a path for devices It will make sure 'val' is in the form: [host-dir:]container-path[:mode] It also validates the device mode.
ValidateEnv validates an environment variable and returns it.
ValidateExtraHost validates that the specified string is a valid extrahost and returns it.
ValidateLink validates that the specified string has a valid link format (containerName:alias).
ValidateMACAddress validates a MAC address.
ValidateThrottleBpsDevice validates that the specified string has a valid device-rate format.
ValidateThrottleIOpsDevice validates that the specified string has a valid device-rate format.
ValidateWeightDevice validates that the specified string has a valid device-weight format.
ValidDeviceMode checks if the mode for device is valid or not.
# Structs
ContainerOptions is a data object with all the options for creating a container.
ErrBadEnvVariable typed error for bad environment variable.
RuntimeOpt defines a map of Runtimes.
ThrottledeviceOpt defines a map of ThrottleDevices.
UlimitOpt defines a map of Ulimits.
WeightdeviceOpt defines a map of WeightDevices.
# Type aliases
ValidatorThrottleFctType defines a validator function that returns a validated struct and/or an error.
ValidatorWeightFctType defines a validator function that returns a validated struct and/or an error.