aws

package
v0.0.0-...-649aced Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEntitlements = errors.New("user is not entitled to any roles")

Functions

This section is empty.

Types

type ErrRoleNotFound

type ErrRoleNotFound struct{ Name string }

func (ErrRoleNotFound) Error

func (e ErrRoleNotFound) Error() string

type Provider

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

func NewProvider

func NewProvider(region string) (*Provider, error)

func (*Provider) GetTemporaryCredentialsForUser

func (p *Provider) GetTemporaryCredentialsForUser(ctx context.Context, roleName string, response *core.SAMLResponse, ttlInHours int) (STSTokenResponse, error)

type STSTokenResponse

type STSTokenResponse struct {
	AccessKeyID     *string `json:"accessKeyId"`
	SecretAccessKey *string `json:"secretAccessKey"`
	SessionToken    *string `json:"sessionToken"`
	Expiration      string  `json:"expiration"`
}

Jump to

Keyboard shortcuts

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