sessionmgr

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionMgr

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

SessionMgr ... holds one session per region provided to New()

func New

func New(defaultRegion string, regions []string) *SessionMgr

New ... returns a *SessionMgr

func (*SessionMgr) All

func (mgr *SessionMgr) All() []*session.Session

All ... returns all sessions stored inside the *SessionMgr

func (*SessionMgr) Default

func (mgr *SessionMgr) Default() (*session.Session, error)

Default ... returns the session matching the defaultRegion

func (*SessionMgr) Init added in v0.1.2

func (mgr *SessionMgr) Init() error

Init ... creates one session per region provided to New()

func (*SessionMgr) Region

func (mgr *SessionMgr) Region(region string) (*session.Session, error)

Region ... returns the session whose region matches 'region'

func (*SessionMgr) Sessioner added in v0.1.2

func (mgr *SessionMgr) Sessioner(sessioner Sessioner)

Sessioner ... sets the method to use for creating new sessions

type Sessioner added in v0.1.2

type Sessioner func(cfgs ...*aws.Config) (*session.Session, error)

Sessioner returns a new *session.Session and an error

Jump to

Keyboard shortcuts

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