Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsServiceProvider ¶
type AwsServiceProvider struct { StsClient stsiface.STSAPI InputReader console.ConsoleReader UserOutput *os.File }
func NewAwsServiceProvider ¶
func NewAwsServiceProvider(consolerw console.ConsoleReader) *AwsServiceProvider
func (AwsServiceProvider) AssumeRole ¶
func (a AwsServiceProvider) AssumeRole(creds sts.Credentials, targetRole string, sessionName string) (*sts.Credentials, error)
func (AwsServiceProvider) GetCredentials ¶
func (a AwsServiceProvider) GetCredentials(saml string, role AwsRole) *sts.Credentials
type Saml2Assertion ¶
type Saml2Assertion struct { XMLName xml.Name `xml:"Assertion"` AttributeStatement Saml2AttributeStatement `xml:"AttributeStatement"` }
type Saml2Attribute ¶
type Saml2AttributeStatement ¶
type Saml2AttributeStatement struct { XMLName xml.Name `xml:"AttributeStatement"` Attributes []Saml2Attribute `xml:"Attribute"` }
type Saml2pResponse ¶
type Saml2pResponse struct { XMLName xml.Name `xml:"Response"` Assertion Saml2Assertion `xml:"Assertion"` }
Click to show internal directories.
Click to hide internal directories.