Versions in this module Expand all Collapse all v1 v1.1.0 Mar 14, 2022 v1.0.0 Jun 3, 2021 v0 v0.9.0 Jun 23, 2020 Changes in this version + const IPv4ZeroCIDR + const IPv6ZeroCIDR + func GetNodeAddresses(cidrs []string, nw NetworkInterfacer) (sets.String, error) + func IPPart(s string) string + func IsLocalIP(ip string) (bool, error) + func IsZeroCIDR(cidr string) bool + func LogAndEmitIncorrectIPVersionEvent(recorder record.EventRecorder, ...) + func PortPart(s string) (int, error) + func RevertPorts(replacementPortsMap, originalPortsMap map[LocalPort]Closeable) + func ShouldSkipService(svcName types.NamespacedName, service *v1.Service) bool + func ToCIDR(ip net.IP) string + type Closeable interface + Close func() error + type LocalPort struct + Description string + IP string + Port int + Protocol string + func (lp *LocalPort) String() string + type NetworkInterfacer interface + Addrs func(intf *net.Interface) ([]net.Addr, error) + Interfaces func() ([]net.Interface, error) + type PortOpener interface + OpenLocalPort func(lp *LocalPort) (Closeable, error) + type RealNetwork struct + func (_ RealNetwork) Addrs(intf *net.Interface) ([]net.Addr, error) + func (_ RealNetwork) Interfaces() ([]net.Interface, error)