bridge

package
v0.6.0-rc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultGatewayV4AuxKey represents the default-gateway configured by the user
	DefaultGatewayV4AuxKey = "DefaultGatewayIPv4"
	// DefaultGatewayV6AuxKey represents the ipv6 default-gateway configured by the user
	DefaultGatewayV6AuxKey = "DefaultGatewayIPv6"
)
View Source
const (
	// BridgeName label for bridge driver
	BridgeName = "com.docker.network.bridge.name"

	// EnableIPMasquerade label for bridge driver
	EnableIPMasquerade = "com.docker.network.bridge.enable_ip_masquerade"

	// EnableICC label
	EnableICC = "com.docker.network.bridge.enable_icc"

	// DefaultBindingIP label
	DefaultBindingIP = "com.docker.network.bridge.host_binding_ipv4"

	// DefaultBridge label
	DefaultBridge = "com.docker.network.bridge.default_bridge"
)
View Source
const (
	DockerChain    = "DOCKER"
	IsolationChain = "DOCKER-ISOLATION"
)

DockerChain: DOCKER iptable chain name

View Source
const (
	// DefaultBridgeName is the default name for the bridge interface managed
	// by the driver when unspecified by the caller.
	DefaultBridgeName = "docker0"
)

Variables

This section is empty.

Functions

func Init

func Init(dc driverapi.DriverCallback, config map[string]interface{}) error

Init registers a new instance of bridge driver

Types

type ActiveEndpointsError

type ActiveEndpointsError string

ActiveEndpointsError is returned when there are still active endpoints in the network being deleted.

func (ActiveEndpointsError) Error

func (aee ActiveEndpointsError) Error() string

func (ActiveEndpointsError) Forbidden

func (aee ActiveEndpointsError) Forbidden()

Forbidden denotes the type of this error

type EndpointNotFoundError

type EndpointNotFoundError string

EndpointNotFoundError is returned when the no endpoint with the passed endpoint id is found.

func (EndpointNotFoundError) Error

func (enfe EndpointNotFoundError) Error() string

func (EndpointNotFoundError) NotFound

func (enfe EndpointNotFoundError) NotFound()

NotFound denotes the type of this error

type ErrConfigExists

type ErrConfigExists struct{}

ErrConfigExists error is returned when driver already has a config applied.

func (*ErrConfigExists) Error

func (ece *ErrConfigExists) Error() string

func (*ErrConfigExists) Forbidden

func (ece *ErrConfigExists) Forbidden()

Forbidden denotes the type of this error

type ErrIfaceName

type ErrIfaceName struct{}

ErrIfaceName error is returned when a new name could not be generated.

func (*ErrIfaceName) Error

func (ein *ErrIfaceName) Error() string

func (*ErrIfaceName) InternalError

func (ein *ErrIfaceName) InternalError()

InternalError denotes the type of this error

type ErrInvalidAddressBinding

type ErrInvalidAddressBinding string

ErrInvalidAddressBinding is returned when the host address specified in the port binding is not valid.

func (ErrInvalidAddressBinding) BadRequest

func (iab ErrInvalidAddressBinding) BadRequest()

BadRequest denotes the type of this error

func (ErrInvalidAddressBinding) Error

func (iab ErrInvalidAddressBinding) Error() string

type ErrInvalidContainerConfig

type ErrInvalidContainerConfig struct{}

ErrInvalidContainerConfig error is returned when a endpoint create is attempted with an invalid configuration.

func (*ErrInvalidContainerConfig) BadRequest

func (eicc *ErrInvalidContainerConfig) BadRequest()

BadRequest denotes the type of this error

func (*ErrInvalidContainerConfig) Error

func (eicc *ErrInvalidContainerConfig) Error() string

type ErrInvalidContainerSubnet

type ErrInvalidContainerSubnet struct{}

ErrInvalidContainerSubnet is returned when the container subnet (FixedCIDR) is not valid.

func (*ErrInvalidContainerSubnet) BadRequest

func (eis *ErrInvalidContainerSubnet) BadRequest()

BadRequest denotes the type of this error

func (*ErrInvalidContainerSubnet) Error

func (eis *ErrInvalidContainerSubnet) Error() string

type ErrInvalidDriverConfig

type ErrInvalidDriverConfig struct{}

ErrInvalidDriverConfig error is returned when Bridge Driver is passed an invalid config

func (*ErrInvalidDriverConfig) BadRequest

func (eidc *ErrInvalidDriverConfig) BadRequest()

BadRequest denotes the type of this error

func (*ErrInvalidDriverConfig) Error

func (eidc *ErrInvalidDriverConfig) Error() string

type ErrInvalidEndpointConfig

type ErrInvalidEndpointConfig struct{}

ErrInvalidEndpointConfig error is returned when a endpoint create is attempted with an invalid endpoint configuration.

func (*ErrInvalidEndpointConfig) BadRequest

func (eiec *ErrInvalidEndpointConfig) BadRequest()

BadRequest denotes the type of this error

func (*ErrInvalidEndpointConfig) Error

func (eiec *ErrInvalidEndpointConfig) Error() string

type ErrInvalidGateway

type ErrInvalidGateway struct{}

ErrInvalidGateway is returned when the user provided default gateway (v4/v6) is not not valid.

func (*ErrInvalidGateway) BadRequest

func (eig *ErrInvalidGateway) BadRequest()

BadRequest denotes the type of this error

func (*ErrInvalidGateway) Error

func (eig *ErrInvalidGateway) Error() string

type ErrInvalidMtu

type ErrInvalidMtu int

ErrInvalidMtu is returned when the user provided MTU is not valid.

func (ErrInvalidMtu) BadRequest

func (eim ErrInvalidMtu) BadRequest()

BadRequest denotes the type of this error

func (ErrInvalidMtu) Error

func (eim ErrInvalidMtu) Error() string

type ErrInvalidNetworkConfig

type ErrInvalidNetworkConfig struct{}

ErrInvalidNetworkConfig error is returned when a network is created on a driver without valid config.

func (*ErrInvalidNetworkConfig) Error

func (einc *ErrInvalidNetworkConfig) Error() string

func (*ErrInvalidNetworkConfig) Forbidden

func (einc *ErrInvalidNetworkConfig) Forbidden()

Forbidden denotes the type of this error

type ErrInvalidPort

type ErrInvalidPort string

ErrInvalidPort is returned when the container or host port specified in the port binding is not valid.

func (ErrInvalidPort) BadRequest

func (ip ErrInvalidPort) BadRequest()

BadRequest denotes the type of this error

func (ErrInvalidPort) Error

func (ip ErrInvalidPort) Error() string

type ErrNetworkExists

type ErrNetworkExists struct{}

ErrNetworkExists error is returned when a network already exists and another network is created.

func (*ErrNetworkExists) Error

func (ene *ErrNetworkExists) Error() string

func (*ErrNetworkExists) Forbidden

func (ene *ErrNetworkExists) Forbidden()

Forbidden denotes the type of this error

type ErrNoIPAddr

type ErrNoIPAddr struct{}

ErrNoIPAddr error is returned when bridge has no IPv4 address configured.

func (*ErrNoIPAddr) Error

func (enip *ErrNoIPAddr) Error() string

func (*ErrNoIPAddr) InternalError

func (enip *ErrNoIPAddr) InternalError()

InternalError denotes the type of this error

type ErrUnsupportedAddressType

type ErrUnsupportedAddressType string

ErrUnsupportedAddressType is returned when the specified address type is not supported.

func (ErrUnsupportedAddressType) BadRequest

func (uat ErrUnsupportedAddressType) BadRequest()

BadRequest denotes the type of this error

func (ErrUnsupportedAddressType) Error

func (uat ErrUnsupportedAddressType) Error() string

type FixedCIDRv4Error

type FixedCIDRv4Error struct {
	Net    *net.IPNet
	Subnet *net.IPNet
	Err    error
}

FixedCIDRv4Error is returned when fixed-cidrv4 configuration failed.

func (*FixedCIDRv4Error) Error

func (fcv4 *FixedCIDRv4Error) Error() string

func (*FixedCIDRv4Error) InternalError

func (fcv4 *FixedCIDRv4Error) InternalError()

InternalError denotes the type of this error

type FixedCIDRv6Error

type FixedCIDRv6Error struct {
	Net *net.IPNet
	Err error
}

FixedCIDRv6Error is returned when fixed-cidrv6 configuration failed.

func (*FixedCIDRv6Error) Error

func (fcv6 *FixedCIDRv6Error) Error() string

func (*FixedCIDRv6Error) InternalError

func (fcv6 *FixedCIDRv6Error) InternalError()

InternalError denotes the type of this error

type IPTableCfgError

type IPTableCfgError string

IPTableCfgError is returned when an unexpected ip tables configuration is entered

func (IPTableCfgError) BadRequest

func (name IPTableCfgError) BadRequest()

BadRequest denotes the type of this error

func (IPTableCfgError) Error

func (name IPTableCfgError) Error() string

type IPv4AddrAddError

type IPv4AddrAddError struct {
	IP  *net.IPNet
	Err error
}

IPv4AddrAddError is returned when IPv4 address could not be added to the bridge.

func (*IPv4AddrAddError) Error

func (ipv4 *IPv4AddrAddError) Error() string

func (*IPv4AddrAddError) InternalError

func (ipv4 *IPv4AddrAddError) InternalError()

InternalError denotes the type of this error

type IPv4AddrNoMatchError

type IPv4AddrNoMatchError struct {
	IP    net.IP
	CfgIP net.IP
}

IPv4AddrNoMatchError is returned when the bridge's IPv4 address does not match configured.

func (*IPv4AddrNoMatchError) BadRequest

func (ipv4 *IPv4AddrNoMatchError) BadRequest()

BadRequest denotes the type of this error

func (*IPv4AddrNoMatchError) Error

func (ipv4 *IPv4AddrNoMatchError) Error() string

type IPv4AddrRangeError

type IPv4AddrRangeError string

IPv4AddrRangeError is returned when a valid IP address range couldn't be found.

func (IPv4AddrRangeError) BadRequest

func (name IPv4AddrRangeError) BadRequest()

BadRequest denotes the type of this error

func (IPv4AddrRangeError) Error

func (name IPv4AddrRangeError) Error() string

type IPv6AddrAddError

type IPv6AddrAddError struct {
	IP  *net.IPNet
	Err error
}

IPv6AddrAddError is returned when IPv6 address could not be added to the bridge.

func (*IPv6AddrAddError) Error

func (ipv6 *IPv6AddrAddError) Error() string

func (*IPv6AddrAddError) InternalError

func (ipv6 *IPv6AddrAddError) InternalError()

InternalError denotes the type of this error

type IPv6AddrNoMatchError

type IPv6AddrNoMatchError net.IPNet

IPv6AddrNoMatchError is returned when the bridge's IPv6 address does not match configured.

func (*IPv6AddrNoMatchError) BadRequest

func (ipv6 *IPv6AddrNoMatchError) BadRequest()

BadRequest denotes the type of this error

func (*IPv6AddrNoMatchError) Error

func (ipv6 *IPv6AddrNoMatchError) Error() string

type InvalidEndpointIDError

type InvalidEndpointIDError string

InvalidEndpointIDError is returned when the passed endpoint id is not valid.

func (InvalidEndpointIDError) BadRequest

func (ieie InvalidEndpointIDError) BadRequest()

BadRequest denotes the type of this error

func (InvalidEndpointIDError) Error

func (ieie InvalidEndpointIDError) Error() string

type InvalidIPTablesCfgError

type InvalidIPTablesCfgError string

InvalidIPTablesCfgError is returned when an invalid ip tables configuration is entered

func (InvalidIPTablesCfgError) BadRequest

func (action InvalidIPTablesCfgError) BadRequest()

BadRequest denotes the type of this error

func (InvalidIPTablesCfgError) Error

func (action InvalidIPTablesCfgError) Error() string

type InvalidLinkIPAddrError

type InvalidLinkIPAddrError string

InvalidLinkIPAddrError is returned when a link is configured to a container with an invalid ip address

func (InvalidLinkIPAddrError) BadRequest

func (address InvalidLinkIPAddrError) BadRequest()

BadRequest denotes the type of this error

func (InvalidLinkIPAddrError) Error

func (address InvalidLinkIPAddrError) Error() string

type InvalidNetworkIDError

type InvalidNetworkIDError string

InvalidNetworkIDError is returned when the passed network id for an existing network is not a known id.

func (InvalidNetworkIDError) Error

func (inie InvalidNetworkIDError) Error() string

func (InvalidNetworkIDError) NotFound

func (inie InvalidNetworkIDError) NotFound()

NotFound denotes the type of this error

type InvalidSandboxIDError

type InvalidSandboxIDError string

InvalidSandboxIDError is returned when the passed sandbox id is not valid.

func (InvalidSandboxIDError) BadRequest

func (isie InvalidSandboxIDError) BadRequest()

BadRequest denotes the type of this error

func (InvalidSandboxIDError) Error

func (isie InvalidSandboxIDError) Error() string

type NonDefaultBridgeExistError

type NonDefaultBridgeExistError string

NonDefaultBridgeExistError is returned when a non-default bridge config is passed but it does not already exist.

func (NonDefaultBridgeExistError) Error

func (ndbee NonDefaultBridgeExistError) Error() string

func (NonDefaultBridgeExistError) Forbidden

func (ndbee NonDefaultBridgeExistError) Forbidden()

Forbidden denotes the type of this error

type NonDefaultBridgeNeedsIPError

type NonDefaultBridgeNeedsIPError string

NonDefaultBridgeNeedsIPError is returned when a non-default bridge config is passed but it has no ip configured

func (NonDefaultBridgeNeedsIPError) Error

func (ndbee NonDefaultBridgeNeedsIPError) Error() string

func (NonDefaultBridgeNeedsIPError) Forbidden

func (ndbee NonDefaultBridgeNeedsIPError) Forbidden()

Forbidden denotes the type of this error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL