Documentation ¶
Index ¶
- func Cmp(a, b net.IP) int
- func FirstIPInSubnet(addr *net.IPNet) (net.IP, error)
- func GenerateNetworkFilters(f map[string][]string) ([]types.FilterFunc, error)
- func GenerateNetworkPruneFilters(f map[string][]string) ([]types.FilterFunc, error)
- func IsIPv4(netIP net.IP) bool
- func IsIPv6(netIP net.IP) bool
- func LastIPInSubnet(addr *net.IPNet) (net.IP, error)
- func NextIP(ip net.IP) net.IP
- func NormalizeIP(ip *net.IP)
- func PrevIP(ip net.IP) net.IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstIPInSubnet ¶
FirstIPInSubnet gets the first IP in a subnet
func GenerateNetworkFilters ¶
func GenerateNetworkFilters(f map[string][]string) ([]types.FilterFunc, error)
func GenerateNetworkPruneFilters ¶
func GenerateNetworkPruneFilters(f map[string][]string) ([]types.FilterFunc, error)
func LastIPInSubnet ¶
LastIPInSubnet gets the last IP in a subnet
func NormalizeIP ¶
NormalizeIP will transform the given ip to the 4 byte len ipv4 if possible
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.