Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CIDRStringContainsIP ¶
CIDRStringContainsIP parses the given CIDR string using net.ParseCIDR and returns an IP
func ContainsAll ¶
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 ¶
AvailableIPs returns the number of IPs available in a CIDR
func (*CIDR) DeepCopyInto ¶
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.