ec2

package
v0.0.0-...-3d72318 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EC2_API_VERSION = "2014-06-15"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeInstancesReq

type DescribeInstancesReq struct {
	EC2Req
}

func (*DescribeInstancesReq) Init

type DescribeInstancesResp

type DescribeInstancesResp struct {
	EC2Resp `xml:"-"`

	RequestId      string         `xml:"requestId"`
	ReservationSet ReservationSet `xml:"reservationSet"`
	NextToken      string         `xml:"nextToken"`
}

func (*DescribeInstancesResp) Init

type EC2

type EC2 struct {
	common.AWSService
}

func NewEC2

func NewEC2(cred *common.Credentials) (*EC2, error)

func (*EC2) DescribeInstances

func (this *EC2) DescribeInstances(req *DescribeInstancesReq) (resp *DescribeInstancesResp, err error)

func (*EC2) Init

func (this *EC2) Init(cred *common.Credentials) (*EC2, error)

type EC2Req

type EC2Req struct {
	common.AWSRequest
}

type EC2Resp

type EC2Resp struct {
	common.AWSResponse
	Errors *Errors
}

func (*EC2Resp) Init

func (this *EC2Resp) Init(req *EC2Req, resp *http.Response) (*EC2Resp, error)

type Error

type Error struct {
	Code    string
	Message string
}

type Errors

type Errors struct {
	RequestID string  `xml:"RequestID"`
	Errors    []Error `xml:"Errors>Error"`
}

EC2 error handle: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/api-error-codes.html

func (*Errors) Error

func (this *Errors) Error() string

type ReservationSet

type ReservationSet struct {
}

Jump to

Keyboard shortcuts

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