Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIDRAllocator ¶
type CIDRAllocator interface { fmt.Stringer Occupy(cidr *net.IPNet) error AllocateNext() (*net.IPNet, error) Release(cidr *net.IPNet) error IsAllocated(cidr *net.IPNet) (bool, error) IsFull() bool InRange(cidr *net.IPNet) bool IsClusterCIDR(prefix netip.Prefix) bool Prefix() netip.Prefix }
func NewCIDRSets ¶
func NewCIDRSets(isV6 bool, strCIDRs []string, maskSize int) ([]CIDRAllocator, error)
type ErrCIDRCollision ¶
type ErrCIDRCollision struct {
// contains filtered or unexported fields
}
func (ErrCIDRCollision) Error ¶
func (e ErrCIDRCollision) Error() string
func (*ErrCIDRCollision) Is ¶
func (e *ErrCIDRCollision) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.