aws

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataClient

type MetadataClient struct {
	URL string
	// contains filtered or unexported fields
}

MetadataClient is a client for fetching AWS EC2 instance metadata.

func NewMetadataClient

func NewMetadataClient() *MetadataClient

NewMetadataClient returns an instance of a MetadataClient

func (*MetadataClient) LocalIPv4

func (m *MetadataClient) LocalIPv4() (string, error)

LocalIPv4 returns the private IPv4 address of the instance.

func (*MetadataClient) PublicIPv4

func (m *MetadataClient) PublicIPv4() (string, error)

PublicIPv4 returns the public IPv4 address of the instance.

Jump to

Keyboard shortcuts

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