aws

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARN

type ARN struct {
	Partition string
	Service   string
	Region    string
	AccountID string
	Resource  string
}

ARN represents an Amazon Resource Name http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

type AWSError

type AWSError struct {
	Method string
	Err    error
}

func (*AWSError) Error

func (e *AWSError) Error() string

type Client

type Client struct {
	EC2            EC2Client
	S3             S3Client
	Route53        Route53Client
	Cloudformation CloudformationClient
	IAM            IAMClient
	Region         string
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Client, error)

func (*Client) CreateKey

func (c *Client) CreateKey(name string) (string, error)

func (*Client) CreateStack

func (c *Client) CreateStack(name string, template string, parameters map[string]string) (string, error)

func (*Client) DeleteKey

func (c *Client) DeleteKey(name string) error

func (*Client) DeleteObject

func (c *Client) DeleteObject(name string) error

func (*Client) DeleteStack

func (c *Client) DeleteStack(nameOrID string) error

func (*Client) DescribeStack

func (c *Client) DescribeStack(nameOrID string) (string, string, map[string]string, error)

func (*Client) EnsureBucketExists

func (c *Client) EnsureBucketExists(bucketName string) error

func (*Client) GetAccountNumber

func (c *Client) GetAccountNumber() (string, error)

func (*Client) GetBucketName

func (c *Client) GetBucketName() (string, error)

func (*Client) GetHostsFromStackID

func (c *Client) GetHostsFromStackID(stackID string) (map[string]string, error)

func (*Client) ListKeys

func (c *Client) ListKeys(prefix string) ([]string, error)

func (*Client) ParseARN

func (c *Client) ParseARN(arnString string) (ARN, error)

ParseARN parses an ARN string into its component fields

func (*Client) StoreObject

func (c *Client) StoreObject(name string, dataBytes []byte,
	downloadFileName string, contentType string) error

func (*Client) URLForObject

func (c *Client) URLForObject(name string) (string, error)

type Config

type Config struct {
	AccessKey         string
	SecretKey         string
	RegionName        string
	EndpointOverrides map[string]string
}

type Endpoints

type Endpoints struct {
	Route53        string
	EC2            string
	S3             string
	Cloudformation string
}

type IAMClient

type IAMClient interface {
	GetUser(input *iam.GetUserInput) (*iam.GetUserOutput, error)
}

type Route53Client

type Route53Client interface {
	ChangeResourceRecordSets(input *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error)
	ListResourceRecordSets(input *route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error)
}

type S3Client

type S3Client interface {
	PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
	DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
	CreateBucket(input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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