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 GetLocalIP() string
- 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 GetLocalIP ¶ added in v0.54.0
func GetLocalIP() string
GetLocalIP returns the first non loopback local IPv4 of the host. If no ipv4 address is found it may return an ipv6 address. When no ip is found and empty string is returned.
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.