auth

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth() *credentials.Credentials

Auth return AWS authorization credentials

func Clear

func Clear()

Clear deletes cache for auth

func EnvRegion

func EnvRegion() string

EnvRegion get region from env params

Types

type Config

type Config struct {
	*AWS.Config
}

Config is wrapper struct of AWS.Config

func NewConfig

func NewConfig(region, endpoint string) Config

NewConfig returns initialized Config

func NewConfigWithKeys

func NewConfigWithKeys(k Keys) Config

NewConfigWithKeys returns initialized Config with given parameters

func (Config) SetDefault

func (c Config) SetDefault(region, endpoint string)

SetDefault fills parameter of region and endpoint when empty

type Keys

type Keys struct {
	AccessKey string
	SecretKey string
	Region    string
	Endpoint  string
}

Keys used for manual initialization of config on NewConfigWithKeys(Key)

Jump to

Keyboard shortcuts

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