Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HostIPs ¶
HostIPs returns public and private IPs assigned to various interfaces on current host.
func IsPrivateIP ¶
func NodeIP ¶
NodeIP returns a IPv4 address for a given set of interface names. It always prefers a private IP over a public IP. If no interface name is given, all interfaces are checked.
func RoutableIPs ¶
RoutableIPs returns routable public and private IPs associated with current host. It will also use https://ipinfo.io/ip to detect public IP, if no public IP is assigned to a host interface.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package httpclient provides a simple Golang Client for JSON Http Microservices Acknowledgement: - [DigitalOcean Go client](https://github.com/digitalocean/godo/blob/master/godo.go) - [OVH Go client](https://github.com/ovh/go-ovh/blob/master/ovh/ovh.go)
|
Package httpclient provides a simple Golang Client for JSON Http Microservices Acknowledgement: - [DigitalOcean Go client](https://github.com/digitalocean/godo/blob/master/godo.go) - [OVH Go client](https://github.com/ovh/go-ovh/blob/master/ovh/ovh.go) |
Click to show internal directories.
Click to hide internal directories.