Documentation ¶
Index ¶
- func DeepEqualStringSlice(a []string, b []string) bool
- func Intersect(rangeA *networkingv1.AddressRange, rangeB *networkingv1.AddressRange) bool
- func LastIP(subnet *net.IPNet) net.IP
- func NormalizedIP(ip string) string
- func ParseBoolOrDefault(in string, defaultValue bool) bool
- func PickFirstNonEmptyString(ss ...string) string
- func StringSliceToMap(in []string) (out map[string]struct{})
- func StringToIPNet(in string) *net.IPNet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEqualStringSlice ¶ added in v0.4.0
func Intersect ¶ added in v0.3.0
func Intersect(rangeA *networkingv1.AddressRange, rangeB *networkingv1.AddressRange) bool
Intersect returns if ip address range of rangeA is overlapped with rangeB.
func LastIP ¶ added in v0.3.0
LastIP Determine the last IP of a subnet, excluding the broadcast if IPv4
func NormalizedIP ¶
NormalizedIP If IP is valid, return itself otherwise empty string
func ParseBoolOrDefault ¶
func PickFirstNonEmptyString ¶
func StringSliceToMap ¶
func StringToIPNet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.