amazon

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Regions is the list of supported AWS regions.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	client.Client
	// contains filtered or unexported fields
}

The Provider wraps a client to Amazon EC2.

func New

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

New creates a new Amazon EC2 cluster.

func (*Provider) Boot

func (prvdr *Provider) Boot(bootSet []db.Machine) ([]string, error)

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

func (*Provider) Cleanup

func (prvdr *Provider) Cleanup() error

Cleanup removes unnecessary detritus from this provider. It's intended to be called when there are no VMs running or expected to be running soon.

func (*Provider) List

func (prvdr *Provider) List() (machines []db.Machine, err error)

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

func (*Provider) SetACLs

func (prvdr *Provider) SetACLs(acls []acl.ACL) error

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

func (*Provider) Stop

func (prvdr *Provider) Stop(machines []db.Machine) error

Stop shuts down `machines` in `prvdr`.

func (*Provider) UpdateFloatingIPs

func (prvdr *Provider) UpdateFloatingIPs(machines []db.Machine) error

UpdateFloatingIPs updates Elastic IPs <> EC2 instance associations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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