amazon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultRegion is the preferred location for machines that don't have a
	// user specified region preference.
	DefaultRegion = "us-west-1"
)

Variables

View Source
var Regions = []string{"ap-southeast-2", "us-west-1", "us-west-2"}

Regions is the list of supported AWS regions.

Functions

This section is empty.

Types

type Cluster

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

The Cluster object represents a connection to Amazon EC2.

func New

func New(namespace, region string) (*Cluster, error)

New creates a new Amazon EC2 cluster.

func (*Cluster) Boot

func (clst *Cluster) Boot(bootSet []machine.Machine) error

Boot creates instances in the `clst` configured according to the `bootSet`.

func (*Cluster) List

func (clst *Cluster) List() (machines []machine.Machine, err error)

List queries `clst` for the list of booted machines.

func (*Cluster) SetACLs

func (clst *Cluster) SetACLs(acls []acl.ACL) error

SetACLs adds and removes acls in `clst` so that it conforms to `acls`.

func (*Cluster) Stop

func (clst *Cluster) Stop(machines []machine.Machine) error

Stop shuts down `machines` in `clst.

func (*Cluster) UpdateFloatingIPs

func (clst *Cluster) UpdateFloatingIPs(machines []machine.Machine) error

UpdateFloatingIPs updates Elastic IPs <> EC2 instance associations.

Jump to

Keyboard shortcuts

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