Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIP ¶ added in v0.9.2
func IsIPInUse ¶ added in v0.9.0
IsIPInUse performs a soft check to see if there are any services listening on a selection of common ports at ip by trying to establish a TCP connection. Ports checked include: 22, 23, 80, 443 and 6443 (Kubernetes API Server). Each connection attempt allows up-to 500ms for a response.
todo(chrisdoherty) change to an icmp approach to eliminate the need for ports.
func IsPortValid ¶ added in v0.7.0
func ValidateIP ¶ added in v0.8.0
Types ¶
type IPGenerator ¶
type IPGenerator struct {
// contains filtered or unexported fields
}
func NewIPGenerator ¶
func NewIPGenerator(netClient NetClient) IPGenerator
func (IPGenerator) GenerateUniqueIP ¶
func (ipgen IPGenerator) GenerateUniqueIP(cidrBlock string) (string, error)
type IPPool ¶ added in v0.7.1
type IPPool []string
func NewIPPoolFromEnv ¶ added in v0.7.1
func NewIPPoolFromString ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.