Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSubnetAllocatorFull = fmt.Errorf("no subnets available.")
Functions ¶
This section is empty.
Types ¶
type SubnetAllocator ¶
func NewSubnetAllocator ¶
func NewSubnetAllocator() *SubnetAllocator
func (*SubnetAllocator) AddNetworkRange ¶
func (sna *SubnetAllocator) AddNetworkRange(network string, hostBits uint32) error
func (*SubnetAllocator) AllocateNetwork ¶
func (sna *SubnetAllocator) AllocateNetwork() (string, error)
func (*SubnetAllocator) MarkAllocatedNetwork ¶
func (sna *SubnetAllocator) MarkAllocatedNetwork(subnet string) error
func (*SubnetAllocator) ReleaseNetwork ¶
func (sna *SubnetAllocator) ReleaseNetwork(subnet string) error
Click to show internal directories.
Click to hide internal directories.