net

package
v1.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPV6

func IsIPV6(ip _net.IP) bool

IsIPV6 checks if the input contains a valid IPV6 address

func IsIPv6Enabled

func IsIPv6Enabled() bool

IsIPv6Enabled checks if IPV6 is enabled or not and we have at least one configured in the pod

func IsPortAvailable

func IsPortAvailable(p int) bool

IsPortAvailable checks if a TCP port is available or not

func ParseCIDRs

func ParseCIDRs(s string) ([]string, error)

ParseCIDRs parses comma separated CIDRs into a sorted string array

func ParseIPNets

func ParseIPNets(specs ...string) (IPNet, IP, error)

ParseIPNets parses string slice to IPNet.

Types

type IP

type IP map[string]net.IP

IP maps string to net.IP.

type IPNet

type IPNet map[string]*net.IPNet

IPNet maps string to net.IPNet.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL