Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNetworkAlreadyAllocated = errors.New("requested network overlaps with existing network") ErrNetworkAlreadyRegisterd = errors.New("requested network is already registered") ErrNetworkOverlapsWithNameservers = errors.New("requested network overlaps with nameserver") ErrNoAvailableIPs = errors.New("no available ip addresses on network") ErrIPAlreadyAllocated = errors.New("ip already allocated") ErrNetworkNotRegistered = errors.New("network not registered") )
Functions ¶
func RegisterExistingNetwork ¶
RegisterExistingNetwork registers an exising network created for use with the allocator but does not perform any validation
func RegisterNetwork ¶
RegisterNetwork registers a new network with the allocator and validates that it contains a valid ip that does not overlap with existing routes and nameservers
func ReleaseIP ¶
ReleaseIP adds the provided ip back into the pool of available ips to be returned for use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.