package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
ContainsAddress return the list of ServiceCIDR that contains the address passed as argument.
ContainsIP return the list of ServiceCIDR that contains the IP address passed as argument.
ContainsPrefix return the list of ServiceCIDR that contains the prefix passed as argument.
IPToAddr converts a net.IP to a netip.Addr if the net.IP is not valid it returns an empty netip.Addr{}.
OverlapsPrefix return the list of ServiceCIDR that overlaps with the prefix passed as argument.
PrefixContainsIP returns true if the given IP is contained with the prefix, is not the network address and also, if IPv4, is not the broadcast address.