ec2

package
v0.0.0-...-84e2e8a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2014 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HOURS_PER_MONTH = 365 * 24.0 / 12.0

Variables

This section is empty.

Functions

func DescribeAddresses

func DescribeAddresses() error

func DescribeKeyPairs

func DescribeKeyPairs() error

func DescribeSecurityGroups

func DescribeSecurityGroups() error

func DescribeSpotPriceHistory

func DescribeSpotPriceHistory() error

func DescribeTags

func DescribeTags() error

func Register

func Register(router *cli.Router)

Types

type CreateImage

type CreateImage struct {
	ImageId string `cli:"type=arg required=true"`
}

func (*CreateImage) Run

func (a *CreateImage) Run() error

type CreateTags

type CreateTags struct {
	ResourceId string `cli:"type=arg required=true"`
	Key        string `cli:"type=arg required=true"`
	Value      string `cli:"type=arg required=true"`
}

func (*CreateTags) Run

func (r *CreateTags) Run() error

type DescribeImages

type DescribeImages struct {
	Canonical bool `cli:"type=opt long=canonical"`
	Self      bool `cli:"type=opt long=self"`
	Ubuntu    bool `cli:"type=opt long=ubuntu"`
	Raring    bool `cli:"type=opt long=raring"`
	Saucy     bool `cli:"type=opt long=saucy"`
}

func (*DescribeImages) Run

func (a *DescribeImages) Run() error

type DescribeInstances

type DescribeInstances struct {
	Detailed bool `cli:"type=opt long=detailed"`
}

func (*DescribeInstances) Run

func (a *DescribeInstances) Run() error

type Prices

type Prices struct {
	Region   string `cli:"type=opt short=r default=eu-ireland"`
	Heavy    bool   `cli:"type=opt long=heavy"`
	Detailed bool   `cli:"type=opt long=detailed"`
}

func (*Prices) Run

func (a *Prices) Run() error

type RunInstances

type RunInstances struct {
	Name             string `cli:"type=opt long=name desc='Name of the Instanze'"`
	InstanceType     string `cli:"type=opt short=t desc='Instance Type' required=true"`
	ImageId          string `cli:"type=opt short=i desc='Image Id' required=true"`
	KeyName          string `cli:"type=opt short=k desc='SSH Key' required=true"`
	SecurityGroup    string `cli:"type=opt short=g desc='Security Group'"`
	SubnetId         string `cli:"type=opt long=subnet-id desc='Subnet Id'"`
	PublicIp         bool   `cli:"type=opt long=public-ip desc='Assign Public IP'"`
	AvailabilityZone string `cli:"type=opt long=availability-zone desc='Availability Zone'"`
	UserDataFile     string `cli:"type=opt long=userdata desc='Path to file with userdata'"`
}

func (*RunInstances) Run

func (a *RunInstances) Run() error

type TerminateInstances

type TerminateInstances struct {
	InstanceIds []string `cli:"type=arg required=true"`
}

func (*TerminateInstances) Run

func (a *TerminateInstances) Run() error

Jump to

Keyboard shortcuts

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