goamz: github.com/Shop2market/goamz/aws Index | Files

package aws

import "github.com/Shop2market/goamz/aws"

goamz - Go packages to interact with the Amazon Web Services.


Copyright (c) 2011 Canonical Ltd.

Written by Gustavo Niemeyer <gustavo.niemeyer@canonical.com>


Package Files

attempt.go aws.go


var APNortheast = Region{
var APSoutheast = Region{
var APSoutheast2 = Region{
var EUWest = Region{
var Regions = map[string]Region{
    APNortheast.Name:  APNortheast,
    APSoutheast.Name:  APSoutheast,
    APSoutheast2.Name: APSoutheast2,
    EUWest.Name:       EUWest,
    USEast.Name:       USEast,
    USWest.Name:       USWest,
    USWest2.Name:      USWest2,
    SAEast.Name:       SAEast,
var SAEast = Region{
var USEast = Region{
var USWest = Region{
var USWest2 = Region{

func Encode Uses

func Encode(s string) string

Encode takes a string and URI-encodes it in a way suitable to be used in AWS signatures.

type Attempt Uses

type Attempt struct {
    // contains filtered or unexported fields

func (*Attempt) HasNext Uses

func (a *Attempt) HasNext() bool

HasNext returns whether another attempt will be made if the current one fails. If it returns true, the following call to Next is guaranteed to return true.

func (*Attempt) Next Uses

func (a *Attempt) Next() bool

Next waits until it is time to perform the next attempt or returns false if it is time to stop trying.

type AttemptStrategy Uses

type AttemptStrategy struct {
    Total time.Duration // total duration of attempt.
    Delay time.Duration // interval between each try in the burst.
    Min   int           // minimum number of retries; overrides Total

AttemptStrategy represents a strategy for waiting for an action to complete successfully. This is an internal type used by the implementation of other goamz packages.

func (AttemptStrategy) Start Uses

func (s AttemptStrategy) Start() *Attempt

Start begins a new sequence of attempts for the given strategy.

type Auth Uses

type Auth struct {
    AccessKey, SecretKey string

func EnvAuth Uses

func EnvAuth() (auth Auth, err error)

EnvAuth creates an Auth based on environment information. The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are used as the first preference, but EC2_ACCESS_KEY and EC2_SECRET_KEY environment variables are also supported.

type Region Uses

type Region struct {
    Name                 string // the canonical name of this region.
    EC2Endpoint          string
    S3Endpoint           string
    S3BucketEndpoint     string // Not needed by AWS S3. Use ${bucket} for bucket name.
    S3LocationConstraint bool   // true if this region requires a LocationConstraint declaration.
    S3LowercaseBucket    bool   // true if the region requires bucket names to be lower case.
    SDBEndpoint          string
    SNSEndpoint          string
    SQSEndpoint          string
    IAMEndpoint          string

Region defines the URLs where AWS services may be accessed.

See http://goo.gl/d8BP1 for more details.

Package aws imports 3 packages (graph) and is imported by 7 packages. Updated 2016-08-27. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).