Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶ added in v1.14.0
ContainsAll returns true if 'ipNets1' contains all net.IPNet of 'ipNets2'
Types ¶
type CIDR ¶
CIDR is a network CIDR representation based on net.IPNet
func DiffCIDRLists ¶
DiffCIDRLists compares an old and new list of CIDRs and returns the list of removed and added CIDRs
func MustParseCIDR ¶
MustParseCIDR parses the CIDR string using net.ParseCIDR and panics if the CIDR cannot be parsed
func (*CIDR) AvailableIPs ¶ added in v1.14.0
AvailableIPs returns the number of IPs available in a CIDR
func (*CIDR) DeepCopyInto ¶ added in v1.14.0
DeepCopyInto is a deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.