Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBridgeNameGenerator ¶
func NewBridgeNameGenerator(prefix string) *bridgeNameGenerator
Types ¶
type BridgeManager ¶
type BridgeManager interface { // Reserve reserves a bridge name for a subnet. // if this is the first call of 'reserve' for a subnet created a new, unique bridge name Reserve(subnet *net.IPNet, containerId string) (string, error) // Rereserves adds a container to the list of reservations for a particular bridge name. Rereserve(bridgeName string, subnet *net.IPNet, containerId string) error // Release releases a reservation made by a particular container. // If this is the last reservation, the passed destroyers Destroy method is called. Release(bridgeName string, containerId string) error // Prune deletes all bridges starting with prefix, that are unknown. Prune() error }
type BridgeNameGenerator ¶
type BridgeNameGenerator interface {
Generate() string
}
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.