Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSessionFactory ¶
type AWSSessionFactory struct { MasterSession *session.Session SessionCache map[SessionKey]*session.Session // contains filtered or unexported fields }
Returns an AWS session by profile name and region Profile name must be present in the credentials file Master session must be initialized to assume roles in other accounts
func NewAWSSessionFactory ¶
func NewAWSSessionFactory() *AWSSessionFactory
func (*AWSSessionFactory) GenerateMasterSession ¶
func (sessionFactory *AWSSessionFactory) GenerateMasterSession(sessionKey SessionKey) (*session.Session, error)
func (*AWSSessionFactory) GetSession ¶
func (sessionFactory *AWSSessionFactory) GetSession(sessionKey SessionKey) (*session.Session, error)
type SessionKey ¶
func (SessionKey) String ¶
func (sessionKey SessionKey) String() string
Click to show internal directories.
Click to hide internal directories.