ec2

package
v0.0.0-...-1d9613f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname() (string, error)

GetHostname fetches the hostname for current host from the EC2 metadata API

func GetInstanceID

func GetInstanceID() (string, error)

GetInstanceID fetches the instance id for current host from the EC2 metadata API

func GetTags

func GetTags() ([]string, error)

GetTags grabs the host tags from the EC2 api

func HostnameProvider

func HostnameProvider(hostName string) (string, error)

HostnameProvider gets the hostname

func IsDefaultHostname

func IsDefaultHostname(hostname string) bool

IsDefaultHostname returns whether the given hostname is a default one for EC2

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL