aws

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

aws utilities.

aws signature method 4.

see http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDate = errors.New("Date header not supplied")
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Email, Password            string `json:",omitempty"`
	AccessKey, SecretKey       string
	AccountID, CanonicalUserID string `json:",omitempty"`
	Comment                    string `json:",omitempty"`
}

type Keys

type Keys struct {
	AccessKey string
	SecretKey string
}

Keys holds a set of Amazon Security Credentials.

type Service

type Service struct {
	// Name is the name of the service being used (i.e. iam, etc)
	Name string

	// Region is the region you want to communicate with the service through. (i.e. us-east-1)
	Region string
}

Service represents an AWS-compatible service.

func (*Service) Sign

func (s *Service) Sign(keys *Keys, r *http.Request) error

Sign signs an HTTP request with the given AWS keys for use on service s.

Directories

Path Synopsis
code for accessing dynamo db.
code for accessing dynamo db.
code for accessing s3.
code for accessing s3.

Jump to

Keyboard shortcuts

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