Documentation ¶
Index ¶
- Variables
- func FindAvailableHostFromCidr(namespace, cidr string, inUseIPSet *netipx.IPSet, ...) (string, error)
- func FindAvailableHostFromRange(namespace, ipRange string, inUseIPSet *netipx.IPSet, ...) (string, error)
- func FindFreeAddress(poolIPSet *netipx.IPSet, inUseIPSet *netipx.IPSet, ...) (netip.Addr, error)
- func SplitCIDRsByIPFamily(cidrs string) (ipv4 string, ipv6 string, err error)
- func SplitRangesByIPFamily(ipRangeString string) (ipv4 string, ipv6 string, err error)
- type OutOfIPsError
Constants ¶
This section is empty.
Variables ¶
View Source
var Manager []ipManager
Manager - handles the addresses for each namespace/vip
Functions ¶
func FindAvailableHostFromCidr ¶
func FindAvailableHostFromCidr(namespace, cidr string, inUseIPSet *netipx.IPSet, kubevipLBConfig *config.KubevipLBConfig) (string, error)
FindAvailableHostFromCidr - will look through the cidr and the address Manager and find a free address (if possible)
func FindAvailableHostFromRange ¶
func FindAvailableHostFromRange(namespace, ipRange string, inUseIPSet *netipx.IPSet, kubevipLBConfig *config.KubevipLBConfig) (string, error)
FindAvailableHostFromRange - will look through the cidr and the address Manager and find a free address (if possible)
func FindFreeAddress ¶ added in v0.0.6
func FindFreeAddress(poolIPSet *netipx.IPSet, inUseIPSet *netipx.IPSet, kubevipLBConfig *config.KubevipLBConfig) (netip.Addr, error)
FindFreeAddress returns the next free IP Address in a range based on a set of existing addresses. It will skip assumed gateway ip or broadcast ip for IPv4 address
func SplitCIDRsByIPFamily ¶ added in v0.0.8
SplitCIDRsByIPFamily splits the cidrs into separate lists of ipv4 and ipv6 CIDRs
Types ¶
type OutOfIPsError ¶ added in v0.0.8
type OutOfIPsError struct {
// contains filtered or unexported fields
}
OutOfIPsError stores informations that are required to return out of ip error
func (*OutOfIPsError) Error ¶ added in v0.0.8
func (e *OutOfIPsError) Error() string
Click to show internal directories.
Click to hide internal directories.