package
1.13.0
Repository: https://github.com/stevenh/docker.git
Documentation: pkg.go.dev

# Functions

ConvertPortToPortConfig converts ports to the swarm type.
NewFilterOpt returns a new FilterOpt.
NewIPOpt creates a new IPOpt from a reference net.IP and a string representation of an IP.
NewListOpts creates a new ListOpts with the specified validator.
NewListOptsRef creates a new ListOpts with the specified values and validator.
NewMapOpts creates a new MapOpts with the specified map of values and a validator.
NewNamedListOptsRef creates a reference to a new NamedListOpts struct.
NewNamedMapOpts creates a reference to a new NamedMapOpts struct.
NewQuotedString returns a new quoted string option.
ParseCPUs takes a string ratio and returns an integer value of nano cpus.
ParseHost and set defaults for a Daemon host string.
ParseTCPAddr parses and validates that the specified address is a valid TCP address.
ValidateDNSSearch validates domain for resolvconf search configuration.
ValidateHost validates that the specified string is a valid host and returns it.
ValidateIPAddress validates an Ip address.
ValidateLabel validates that the specified string is a valid label, and returns it.
ValidateSysctl validates a sysctl and returns it.

# Constants

DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g.

# Variables

DefaultHost constant defines the default host string used by docker on other hosts than Windows.
Default HTTP Port.
DefaultNamedPipe defines the default named pipe used by docker on Windows.
DefaultTCPHost constant defines the default host string used by docker on Windows.
DefaultTLSHost constant defines the default host string used by docker for TLS sockets.
Default TLS encrypted HTTP Port.
DefaultUnixSocket Path for the unix socket.

# Structs

FilterOpt is a flag type for validating filters.
IPOpt holds an IP.
ListOpts holds a list of values and a validation function.
MapOpts holds a map of values and a validation function.
MountOpt is a Value type for parsing mounts.
NamedListOpts is a ListOpts with a configuration name.
NamedMapOpts is a MapOpts struct with a configuration name.
PortOpt represents a port config in swarm mode.
QuotedString is a string that may have extra quotes around the value.
SecretOpt is a Value type for parsing secrets.

# Interfaces

NamedOption is an interface that list and map options with names implement.

# Type aliases

NanoCPUs is a type for fixed point fractional number.
ValidatorFctListType defines a validator function that returns a validated list of string and/or an error.
ValidatorFctType defines a validator function that returns a validated string and/or an error.