Versions in this module Expand all Collapse all v0 v0.1.0 Feb 13, 2026 Changes in this version + func CIDRAddressCount(cidr string) (*big.Int, error) + func CIDRAddressCountFitsInt64(cidr string) bool + func CIDRAddressCountInt64(cidr string) int64 + func CIDRAddressCountString(cidr string) string + func Contains(supernet string, cidr string) (bool, error) + func IsCIDRAvailable(supernet string, cidr string) (bool, error) + func NextAvailableCIDR(supernet string, prefixLength int) (string, error) + func NextAvailableCIDRWithAllocations(supernet string, prefixLength int, allocatedCIDRs []string) (string, error) + func Overlaps(cidr1 string, cidr2 string) (bool, error) + func ValidateCIDR(cidr string) bool + type Allocation struct + Block Block + Id uuid.UUID + Name string + type Block struct + CIDR string + Children []Block + EnvironmentID uuid.UUID + ID uuid.UUID + Name string + OrganizationID uuid.UUID + PoolID *uuid.UUID + Usage Usage + type Environment struct + Block []Block + Id uuid.UUID + Name string + OrganizationID uuid.UUID + type Pool struct + CIDR string + EnvironmentID uuid.UUID + ID uuid.UUID + Name string + OrganizationID uuid.UUID + type Usage struct + AvailableIPs int + TotalIPs int + UsedIPs int