aws

package
v0.0.0-...-dc8a8ef Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsRole

type AwsRole struct {
	Name      string
	ARN       string
	Principal string
}

func FindAwsRoleByName

func FindAwsRoleByName(name string, roles []AwsRole) (AwsRole, error)

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

func (AwsServiceProvider) ListRoles

func (a AwsServiceProvider) ListRoles(saml string) (roles []AwsRole, err error)

type Saml2Assertion

type Saml2Assertion struct {
	XMLName            xml.Name                `xml:"Assertion"`
	AttributeStatement Saml2AttributeStatement `xml:"AttributeStatement"`
}

type Saml2Attribute

type Saml2Attribute struct {
	XMLName xml.Name `xml:"Attribute"`
	Name    string   `xml:"Name,attr"`
	Values  []string `xml:"AttributeValue"`
}

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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