client

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DescribeInstances([]*ec2.Filter) (*ec2.DescribeInstancesOutput, error)
	RunInstances(*ec2.RunInstancesInput) (*ec2.Reservation, error)
	TerminateInstances(ids []string) error

	DescribeSpotInstanceRequests(ids []string, filters []*ec2.Filter) (
		[]*ec2.SpotInstanceRequest, error)
	RequestSpotInstances(spotPrice string, count int64,
		launchSpec *ec2.RequestSpotLaunchSpecification) (
		[]*ec2.SpotInstanceRequest, error)
	CancelSpotInstanceRequests(ids []string) error

	DescribeSecurityGroup(name string) ([]*ec2.SecurityGroup, error)
	CreateSecurityGroup(name, description string) (string, error)
	DeleteSecurityGroup(id string) error
	AuthorizeSecurityGroup(name, src string, ranges []*ec2.IpPermission) error
	RevokeSecurityGroup(name string, ranges []*ec2.IpPermission) error
	DescribeAddresses() ([]*ec2.Address, error)
	AssociateAddress(id, allocationID string) error
	DisassociateAddress(associationID string) error

	DescribeVolumes() ([]*ec2.Volume, error)
}

A Client to an Amazon EC2 region.

func New

func New(region string) Client

New creates a new Client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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