Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFull = errors.New("range is full") ErrAllocated = errors.New("provided IP is already allocated") )
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
func NewAllocatorRange ¶
func NewAllocatorRange(base, max int, allocatorFactory allocator.AllocatorFactory) (*Range, error)
func (*Range) AllocateNext ¶
AllocateNext returns the next available vni in the range
Click to show internal directories.
Click to hide internal directories.