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 best effort check to see if an IP address is in use. It is not completely reliable as testing if an IP is in use is inherently difficult, particularly with non-trivial network topologies.
func IsPortInUse ¶ added in v0.12.0
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.