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 CIDRsToIPNets ¶ added in v1.17.0
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 NewCIDRSlice ¶ added in v1.17.0
func (*CIDR) DeepCopyInto ¶
DeepCopyInto is a deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDR) DeepEqual ¶
DeepEqual is an deepequal function, deeply comparing the receiver with other. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.