Documentation ¶
Index ¶
- func Free(danmClient danmclientset.Interface, netInfo danmtypes.DanmNet, ip string) error
- func GarbageCollectIps(danmClient danmclientset.Interface, netInfo *danmtypes.DanmNet, ...)
- func Int2ip(nn uint32) net.IP
- func Int2ip6(nn *big.Int) net.IP
- func Ip2int(ip net.IP) uint32
- func Ip62int(ip6 net.IP) *big.Int
- func Reserve(danmClient danmclientset.Interface, netInfo danmtypes.DanmNet, ...) (string, string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Free ¶
Free inspects the network object received as an input, and releases an IPv4 or IPv6 address from the appropriate allocation pool The IP address liberation is represented by unsetting a bit in the network's BitArray type allocation matrix The refreshed network object is modified in the K8s API server at the end
func GarbageCollectIps ¶
func GarbageCollectIps(danmClient danmclientset.Interface, netInfo *danmtypes.DanmNet, ip4, ip6 string)
func Int2ip ¶
Int2ip converts an IP address stored as a native Golang big endian, 32-bit integer to an IP represented according to the Golang net package
func Int2ip6 ¶
Int2ip6 converts an IP address stored as a native Golang big endian, 64-bit integer to an IP represented according to the Golang net package
func Ip2int ¶
Ip2int converts an IP address stored according to the Golang net package to a native Golang big endian, 32-bit integer
func Ip62int ¶
Ip62int converts an IPv6 address stored according to the Golang net package to a native Golang big endian, 64-bit integer
func Reserve ¶
func Reserve(danmClient danmclientset.Interface, netInfo danmtypes.DanmNet, req4, req6 string) (string, string, string, error)
Reserve inspects the network object received as an input, and allocates an IPv4 or IPv6 address from the appropriate allocation pool In case static IP allocation is requested, it will try reserver the requested error. If it is not possible, it returns an error The reserved IP address is represented by setting a bit in the network's BitArray type allocation matrix The refreshed network object is modified in the K8s API server at the end
Types ¶
This section is empty.