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 DumpResponse ¶
Types ¶
type Account ¶
type Account struct { Credentials // contains filtered or unexported fields }
func NewAccount ¶
func NewAccount(creds Credentials) (*Account, error)
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
Click to show internal directories.
Click to hide internal directories.