aws

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aws

type Aws struct {
	// contains filtered or unexported fields
}

Aws is the main object

func New

func New(config *Config) (*Aws, error)

New builds a client from the provided config

func (*Aws) GetFederationToken added in v0.0.4

func (a *Aws) GetFederationToken(name string) *sts.Credentials

GetFederationToken takes in a name and returns a set of STS Credentials based on the current session

func (*Aws) WaitForActiveCreds added in v0.0.4

func (a *Aws) WaitForActiveCreds()

WaitForActiveCreds waits for the current session to become valid This is useful when IAM credentials were just provisioned and we need to wait until they're active to take the next step.

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Log       Logger
}

type Logger added in v0.0.4

type Logger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Fatal(args ...interface{})
}

Jump to

Keyboard shortcuts

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