Documentation ¶
Overview ¶
Package ipnet wraps net.IPNet to get CIDR serialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPNet ¶
IPNet wraps net.IPNet to get CIDR serialization. +kubebuilder:validation:Type=string
func MustParseCIDR ¶ added in v0.7.0
MustParseCIDR parses a CIDR from its string representation. If the parse fails, the function will panic.
func (IPNet) MarshalJSON ¶
MarshalJSON interface for an IPNet
func (*IPNet) String ¶
String returns a CIDR serialization of the subnet, or an empty string if the subnet is nil.
func (*IPNet) UnmarshalJSON ¶
UnmarshalJSON interface for an IPNet
Click to show internal directories.
Click to hide internal directories.