package opts
import "github.com/dotcloud/docker/internal/opts"
Index ¶
- func ValidateHostGatewayIPs(hostGatewayIPs []netip.Addr) error
- type NamedIPListOpts
- func NewNamedIPListOptsRef(name string, values *[]netip.Addr) *NamedIPListOpts
- func (o *NamedIPListOpts) Name() string
- func (o *NamedIPListOpts) Set(value string) error
- func (o *NamedIPListOpts) String() string
- func (o *NamedIPListOpts) Type() string
- type NamedSetOpts
- func NewNamedSetOpts(name string, values map[string]bool) *NamedSetOpts
- func (o *NamedSetOpts) Name() string
- type SetOpts
Functions ¶
func ValidateHostGatewayIPs ¶
ValidateHostGatewayIPs makes sure the addresses are valid, and there's at-most one IPv4 and one IPv6 address.
Types ¶
type NamedIPListOpts ¶
type NamedIPListOpts struct {
// contains filtered or unexported fields
}
NamedIPListOpts appends to an underlying []netip.Addr.
func NewNamedIPListOptsRef ¶
func NewNamedIPListOptsRef(name string, values *[]netip.Addr) *NamedIPListOpts
NewNamedIPListOptsRef constructs a NamedIPListOpts and returns its address.
func (*NamedIPListOpts) Name ¶
func (o *NamedIPListOpts) Name() string
Name returns the name of the NamedIPListOpts in the configuration.
func (*NamedIPListOpts) Set ¶
func (o *NamedIPListOpts) Set(value string) error
Set converts value to a netip.Addr and appends it to the underlying []netip.Addr.
func (*NamedIPListOpts) String ¶
func (o *NamedIPListOpts) String() string
String returns a string representation of the addresses in the underlying []netip.Addr.
func (*NamedIPListOpts) Type ¶
func (o *NamedIPListOpts) Type() string
Type returns a string name for this Option type
type NamedSetOpts ¶
type NamedSetOpts struct { SetOpts // contains filtered or unexported fields }
NamedSetOpts is a SetOpts struct with a configuration name. This struct is useful to keep reference to the assigned field name in the internal configuration struct.
func NewNamedSetOpts ¶
func NewNamedSetOpts(name string, values map[string]bool) *NamedSetOpts
NewNamedSetOpts creates a reference to a new NamedSetOpts struct.
func (*NamedSetOpts) Name ¶
func (o *NamedSetOpts) Name() string
Name returns the name of the NamedSetOpts in the configuration.
type SetOpts ¶
type SetOpts struct {
// contains filtered or unexported fields
}
SetOpts holds a map of values and a validation function.
func NewSetOpts ¶
NewSetOpts creates a new SetOpts with the specified set of values as a map of string to bool.
func (*SetOpts) GetAll ¶
GetAll returns the values of SetOpts as a map.
func (*SetOpts) Set ¶
Set validates if needed the input value and add it to the internal map, by splitting on '='.
func (*SetOpts) String ¶
func (*SetOpts) Type ¶
Type returns a string name for this Option type
Source Files ¶
host_gateway_opts.go named_iplist_opts.go opts.go
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 6 hours ago –
Tools for package owners.