Documentation
¶
Overview ¶
Package ipam contains types to implement IP address management on IPv4 and IPv6 networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPv4Pool ¶
type IPv4Pool struct {
// contains filtered or unexported fields
}
func NewIPv4Pool ¶
type IPv6Pool ¶
type IPv6Pool struct {
// contains filtered or unexported fields
}
func NewIPv6Pool ¶
type Pool ¶
type Pool interface { // Obtains the next IP address, or returns nil if the pool was exhausted. GetAddr() (netip.Addr, bool) // Returns an IP address to the pool. The ip address must have been obtained // by a previous call to GetIP or the method panics. PutAddr(netip.Addr) }
Pool is an interface implemented by the IPv4Pool and IPv6Pool types to abstract the type of IP addresses that are managed by the pool.
Click to show internal directories.
Click to hide internal directories.