awsutil

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRegion = "us-east-1" // This is the only region which cannot be disabled.

Variables

View Source
var REAuthHeader = regexp.MustCompile(`(?m:^(Auth[^:]*):.*$)`)

Functions

func DumpRequest

func DumpRequest(r *http.Request) string

func DumpResponse

func DumpResponse(r *http.Response) string

func Log

func Log(s *session.Session, err error) (*session.Session, error)

Types

type Account

type Account struct {
	Credentials
	// contains filtered or unexported fields
}

func NewAccount

func NewAccount(creds Credentials) (*Account, error)

func (*Account) Alias

func (a *Account) Alias() string

func (*Account) Aliases

func (a *Account) Aliases() []string

func (*Account) ID

func (a *Account) ID() string

type Credentials

type Credentials struct {
	Profile string

	AccessKeyID     string
	SecretAccessKey string
	// contains filtered or unexported fields
}

func (*Credentials) HasKeys

func (c *Credentials) HasKeys() bool

func (*Credentials) HasProfile

func (c *Credentials) HasProfile() bool

func (*Credentials) NewSession

func (c *Credentials) NewSession(region string) (*session.Session, error)

func (*Credentials) Session

func (c *Credentials) Session(region string) (*session.Session, error)

func (*Credentials) Validate

func (c *Credentials) Validate() error

Jump to

Keyboard shortcuts

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