Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Interface string `json:"interface"`
IP string `json:"ip"`
Network string `json:"network"`
IsIPv6 bool `json:"is_ipv6"`
}
Address represents an IP address associated with a network interface
type Discovery ¶
type Discovery struct {
Addresses []Address `json:"addresses"`
}
Discovery holds information about discovered IP addresses
type Options ¶ added in v0.7.0
type Options struct {
// NetcheckURL, when set, enables public IP discovery via a zero-port
// netcheck request to the given URL. On cloud providers the external IP
// isn't on any local interface, so this is the only way to find it.
NetcheckURL string
}
Options configures IP discovery behavior.
Click to show internal directories.
Click to hide internal directories.