package ipallocator
import "github.com/dotcloud/docker/daemon/networkdriver/ipallocator"
Index ¶
- Variables
- func ReleaseIP(network *net.IPNet, ip *net.IP) error
- func RequestIP(network *net.IPNet, ip *net.IP) (*net.IP, error)
Variables ¶
var ( ErrNoAvailableIPs = errors.New("no available ip addresses on network") ErrIPAlreadyAllocated = errors.New("ip already allocated") )
Functions ¶
func ReleaseIP ¶
ReleaseIP adds the provided ip back into the pool of available ips to be returned for use.
func RequestIP ¶
RequestIP requests an available ip from the given network. It will return the next available ip if the ip provided is nil. If the ip provided is not nil it will validate that the provided ip is available for use or return an error
Source Files ¶
- Version
- v1.1.0
- Published
- Jul 3, 2014
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 5 seconds ago –
Tools for package owners.