instancemetadata

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 6

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