Documentation ¶
Overview ¶
Package node provides information about the local node
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveListenAddress ¶
ResolveListenAddress validates the given address and resolves any special hostnames to actual addresses.
Currently, it resolves the following:
- <ec2-priv>: resolves to the node's private IP address
Types ¶
type EC2Metadata ¶
type EC2Metadata struct {
// contains filtered or unexported fields
}
EC2Metadata provides wrapped and cached calls to the EC2 metadata service
var EC2 EC2Metadata
EC2 provides a globally-accessible metadata instance
func (*EC2Metadata) GetPrivIP ¶
func (e *EC2Metadata) GetPrivIP() (ip string, err error)
GetPrivIP gets the node's private IP address
Click to show internal directories.
Click to hide internal directories.