Documentation ¶
Index ¶
Constants ¶
View Source
const ( FAMILY_ALL = nl.FAMILY_ALL FAMILY_V4 = nl.FAMILY_V4 FAMILY_V6 = nl.FAMILY_V6 FAMILY_MPLS = nl.FAMILY_MPLS )
Family type definitions
Variables ¶
This section is empty.
Functions ¶
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.