Documentation
¶
Index ¶
- Constants
- Variables
- func New() (string, driverapi.Driver)
- type ActiveEndpointsError
- type Configuration
- type FixedCIDRv4Error
- type FixedCIDRv6Error
- type IPv4AddrAddError
- type IPv4AddrNoMatchError
- type IPv4AddrRangeError
- type IPv6AddrAddError
- type IPv6AddrNoMatchError
- type InvalidEndpointIDError
- type InvalidNetworkIDError
- type NonDefaultBridgeExistError
Constants ¶
const ( // DefaultBridgeName is the default name for the bridge interface managed // by the driver when unspecified by the caller. DefaultBridgeName = "docker0" )
const (
DockerChain = "DOCKER"
)
DockerChain: DOCKER iptable chain name
Variables ¶
var ( // ErrConfigExists error is returned when driver already has a config applied. ErrConfigExists = errors.New("configuration already exists, simplebridge configuration can be applied only once") // ErrInvalidConfig error is returned when a network is created on a driver without valid config. ErrInvalidConfig = errors.New("trying to create a network on a driver without valid config") // ErrNetworkExists error is returned when a network already exists and another network is created. ErrNetworkExists = errors.New("network already exists, simplebridge can only have one network") // ErrIfaceName error is returned when a new name could not be generated. ErrIfaceName = errors.New("Failed to find name for new interface") // ErrNoIPAddr error is returned when bridge has no IPv4 addrss configured. ErrNoIPAddr = errors.New("Bridge has no IPv4 address configured") )
Functions ¶
Types ¶
type ActiveEndpointsError ¶
type ActiveEndpointsError struct {
// contains filtered or unexported fields
}
ActiveEndpointsError is returned when there are already active endpoints in the network being deleted.
func (*ActiveEndpointsError) Error ¶
func (aee *ActiveEndpointsError) Error() string
type Configuration ¶
type Configuration struct {
BridgeName string
AddressIPv4 *net.IPNet
FixedCIDR *net.IPNet
FixedCIDRv6 *net.IPNet
EnableIPv6 bool
EnableIPTables bool
EnableIPMasquerade bool
EnableICC bool
EnableIPForwarding bool
AllowNonDefaultBridge bool
}
Configuration info for the "simplebridge" driver.
type FixedCIDRv4Error ¶
type FixedCIDRv4Error struct {
// contains filtered or unexported fields
}
FixedCIDRv4Error is returned when fixed-cidrv4 configuration failed.
func (*FixedCIDRv4Error) Error ¶
func (fcv4 *FixedCIDRv4Error) Error() string
type FixedCIDRv6Error ¶
type FixedCIDRv6Error struct {
// contains filtered or unexported fields
}
FixedCIDRv6Error is returned when fixed-cidrv6 configuration failed.
func (*FixedCIDRv6Error) Error ¶
func (fcv6 *FixedCIDRv6Error) Error() string
type IPv4AddrAddError ¶
type IPv4AddrAddError struct {
// contains filtered or unexported fields
}
IPv4AddrAddError is returned when IPv4 address could not be added to the bridge.
func (*IPv4AddrAddError) Error ¶
func (ipv4 *IPv4AddrAddError) Error() string
type IPv4AddrNoMatchError ¶
type IPv4AddrNoMatchError struct {
// contains filtered or unexported fields
}
IPv4AddrNoMatchError is returned when the bridge's IPv4 address does not match configured.
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) Error ¶
func (name IPv4AddrRangeError) Error() string
type IPv6AddrAddError ¶
type IPv6AddrAddError struct {
// contains filtered or unexported fields
}
IPv6AddrAddError is returned when IPv6 address could not be added to the bridge.
func (*IPv6AddrAddError) Error ¶
func (ipv6 *IPv6AddrAddError) Error() string
type IPv6AddrNoMatchError ¶
IPv6AddrNoMatchError is returned when the bridge's IPv6 address does not match configured.
func (*IPv6AddrNoMatchError) Error ¶
func (ipv6 *IPv6AddrNoMatchError) Error() string
type InvalidEndpointIDError ¶
type InvalidEndpointIDError string
InvalidEndpointIDError is returned when the passed endpoint id for an existing endpoint is not a known id.
func (InvalidEndpointIDError) Error ¶
func (ieie InvalidEndpointIDError) 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
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