package
1.0.2
Repository: https://github.com/dejeune/sudocker.git
Documentation: pkg.go.dev

# Functions

convert "key=value" to {"key":"value"}.
No description provided by the author
NewFilterOpt returns a new FilterOpt.
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.
No description provided by the author
No description provided by the author
ParseCPUs takes a string ratio and returns an integer value of nano cpus.
No description provided by the author
ParseLink parses and validates the specified string as a link format (name:alias).
No description provided by the author
No description provided by the author
ValidateDNSSearch validates domain for resolvconf search configuration.
No description provided by the author
ValidateIPAddress validates if the given value is a correctly formatted IP address, and returns the value in normalized form.
ValidateLabel validates that the specified string is a valid label, and returns it.
ValidateLink validates that the specified string has a valid link format (containerName:alias).
ValidateMACAddress validates a MAC address.
ValidateSysctl validates a sysctl and returns it.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ErrBadKey typed error for bad environment variable.
FilterOpt is a flag type for validating filters.
ListOpts holds a list of values and a validation function.
MapOpts holds a map of values and a validation function.
NamedListOpts is a ListOpts with a configuration name.
NamedMapOpts is a MapOpts struct with a configuration name.
NetworkAttachmentOpts represents the network options for endpoint creation.
NetworkOpt represents a network config in swarm mode.
No description provided by the author
No description provided by the author

# Interfaces

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

# Type aliases

MemBytes is a type for human readable memory bytes (like 128M, 2g, etc).
MemSwapBytes is a type for human readable memory bytes (like 128M, 2g, etc).
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.
No description provided by the author
定义了一个validator函数.