aws

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2016 License: MIT Imports: 11 Imported by: 55

Documentation

Index

Constants

View Source
const DefaultEndpoint = "http://169.254.169.254"

DefaultEndpoint -

Variables

This section is empty.

Functions

This section is empty.

Types

type Ec2Info

type Ec2Info struct {
	// contains filtered or unexported fields
}

Ec2Info -

func NewEc2Info

func NewEc2Info() *Ec2Info

NewEc2Info -

func (*Ec2Info) Tag

func (e *Ec2Info) Tag(tag string, def ...string) string

Tag -

type Ec2Meta

type Ec2Meta struct {
	Endpoint string
	Client   *http.Client
}

Ec2Meta -

func MockServer

func MockServer(code int, body string) (*httptest.Server, *Ec2Meta)

MockServer -

func (*Ec2Meta) Dynamic

func (e *Ec2Meta) Dynamic(key string, def ...string) string

Dynamic -

func (*Ec2Meta) Meta

func (e *Ec2Meta) Meta(key string, def ...string) string

Meta -

func (*Ec2Meta) Region

func (e *Ec2Meta) Region() string

Region -

type InstanceDescriber

type InstanceDescriber interface {
	DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
}

InstanceDescriber - A subset of ec2iface.EC2API that we can use to call EC2.DescribeInstances

type InstanceDocument

type InstanceDocument struct {
	PrivateIP        string `json:"privateIp"`
	AvailabilityZone string `json:"availabilityZone"`
	InstanceID       string `json:"InstanceId"`
	InstanceType     string `json:"InstanceType"`
	AccountID        string `json:"AccountId"`
	ImageID          string `json:"imageId"`
	Architecture     string `json:"architecture"`
	Region           string `json:"region"`
}

InstanceDocument -

Jump to

Keyboard shortcuts

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