Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnAvailableService = errors.New("[err] this machine isn't used to metadata service, maybe its machine not in AWS.") ErrNotFound = errors.New("[err] not found resource.") )
Functions ¶
func CanLookup ¶
func CanLookup() bool
CanLookup is to check whether this machine can access a server serving metadata in AWS.
func LocalHostname ¶
LocalHostname is to get local hostname from this instance.
func PublicHostname ¶
PublicHostname is to get public hostname from this instance.
func PublicIPV4 ¶
PublicIPV4 is to get public ipv4 from this instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.