Documentation
¶
Overview ¶
Package dualstack provides tools for managing both ipv4 and ipv6 addresses
Index ¶
- type IPPool
- func (p *IPPool) AddIPNet(ipNet *net.IPNet)
- func (p *IPPool) AddIPNetString(ipNetString string)
- func (p *IPPool) ContainsIP(ip net.IP) bool
- func (p *IPPool) ContainsIPNet(ipNet *net.IPNet) bool
- func (p *IPPool) ContainsIPNetString(ipNetRaw string) bool
- func (p *IPPool) ContainsIPString(in string) bool
- func (p *IPPool) PullIP(ip net.IP) (*net.IPNet, error)
- func (p *IPPool) PullIPString(in string) (*net.IPNet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPPool ¶
IPPool holds available IPv4 and IPv6 addresses in the structure of red-black tree
func (*IPPool) AddIPNetString ¶
AddIPNetString - adds ip addresses from network to the pool by string value
func (*IPPool) ContainsIP ¶
ContainsIP checks that pool contains ip
func (*IPPool) ContainsIPNet ¶
ContainsIPNet checks that pool contains ip net
func (*IPPool) ContainsIPNetString ¶
ContainsIPNetString parses ip net and checks that pool contains ip net
func (*IPPool) ContainsIPString ¶
ContainsIPString parses ip string and checks that pool contains ip
Click to show internal directories.
Click to hide internal directories.