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
Click to show internal directories.
Click to hide internal directories.