package
0.8.0-dev.2
Repository: https://github.com/docker/libnetwork.git
Documentation: pkg.go.dev

# Functions

Init registers a new instance of bridge driver.

# Constants

BridgeName label for bridge driver.
DefaultBindingIP label.
DefaultBridge label.
DefaultBridgeName is the default name for the bridge interface managed by the driver when unspecified by the caller.
DefaultGatewayV4AuxKey represents the default-gateway configured by the user.
DefaultGatewayV6AuxKey represents the ipv6 default-gateway configured by the user.
DockerChain: DOCKER iptable chain name.
EnableICC label.
EnableIPMasquerade label for bridge driver.
DockerChain: DOCKER iptable chain name.

# Structs

ErrConfigExists error is returned when driver already has a config applied.
ErrIfaceName error is returned when a new name could not be generated.
ErrInvalidContainerConfig error is returned when a endpoint create is attempted with an invalid configuration.
ErrInvalidContainerSubnet is returned when the container subnet (FixedCIDR) is not valid.
ErrInvalidDriverConfig error is returned when Bridge Driver is passed an invalid config.
ErrInvalidEndpointConfig error is returned when a endpoint create is attempted with an invalid endpoint configuration.
ErrInvalidGateway is returned when the user provided default gateway (v4/v6) is not not valid.
ErrInvalidNetworkConfig error is returned when a network is created on a driver without valid config.
ErrNetworkExists error is returned when a network already exists and another network is created.
ErrNoIPAddr error is returned when bridge has no IPv4 address configured.
FixedCIDRv4Error is returned when fixed-cidrv4 configuration failed.
FixedCIDRv6Error is returned when fixed-cidrv6 configuration failed.
IPv4AddrAddError is returned when IPv4 address could not be added to the bridge.
IPv4AddrNoMatchError is returned when the bridge's IPv4 address does not match configured.
IPv6AddrAddError is returned when IPv6 address could not be added to the bridge.

# Type aliases

ActiveEndpointsError is returned when there are still active endpoints in the network being deleted.
EndpointNotFoundError is returned when the no endpoint with the passed endpoint id is found.
ErrInvalidAddressBinding is returned when the host address specified in the port binding is not valid.
ErrInvalidMtu is returned when the user provided MTU is not valid.
ErrInvalidPort is returned when the container or host port specified in the port binding is not valid.
ErrUnsupportedAddressType is returned when the specified address type is not supported.
InvalidEndpointIDError is returned when the passed endpoint id is not valid.
InvalidIPTablesCfgError is returned when an invalid ip tables configuration is entered.
InvalidLinkIPAddrError is returned when a link is configured to a container with an invalid ip address.
InvalidNetworkIDError is returned when the passed network id for an existing network is not a known id.
InvalidSandboxIDError is returned when the passed sandbox id is not valid.
IPTableCfgError is returned when an unexpected ip tables configuration is entered.
IPv4AddrRangeError is returned when a valid IP address range couldn't be found.
IPv6AddrNoMatchError is returned when the bridge's IPv6 address does not match configured.
NonDefaultBridgeExistError is returned when a non-default bridge config is passed but it does not already exist.
NonDefaultBridgeNeedsIPError is returned when a non-default bridge config is passed but it has no ip configured.