instancemetadata

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceMetadata

type InstanceMetadata struct {
	Subnet           string
	Instance         string
	AvailabilityZone string
	Region           string
	IPAddress        string
}

func FetchMetadata

func FetchMetadata(mdf MetadataFetcher) (InstanceMetadata, error)

type MetadataFetcher

type MetadataFetcher interface {
	Available() bool
	GetMetadata(string) (string, error)
}

func New

func New(debug bool) MetadataFetcher

Jump to

Keyboard shortcuts

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