 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( // ErrCIDRRangeNoCIDRsRemaining occurs when there are no more space // to allocate CIDR ranges. ErrCIDRRangeNoCIDRsRemaining = errors.New( "CIDR allocation failed; there are no remaining CIDRs left to allocate in the accepted range") )
Functions ¶
This section is empty.
Types ¶
type CidrSet ¶
CidrSet manages a set of CIDR ranges from which blocks of IPs can be allocated from.
func NewCIDRSet ¶
NewCIDRSet creates a new CidrSet.
func (*CidrSet) AllocateNext ¶
AllocateNext allocates the next free CIDR range. This will set the range as occupied and return the allocated range.
 Click to show internal directories. 
   Click to hide internal directories.