aws

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2017 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
	// contains filtered or unexported fields
}

Ec2Meta -

func MockServer

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

MockServer -

func NewEc2Meta added in v1.1.1

func NewEc2Meta() *Ec2Meta

NewEc2Meta -

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(def ...string) 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