sts

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.11.0

type Provider func(assume *stscreds.AssumeRoleProvider)

Function responsible of assuming the IAM Role.

type Request added in v0.11.0

type Request struct {
	Profile  string
	Region   string
	RoleArn  string
	Provider Provider
}

Required configuration to request STS Credentials.

type Response added in v0.11.0

type Response struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
	Expiration      time.Time
}

STS Credentials response.

func GetCredentials added in v0.11.0

func GetCredentials(request Request) (Response, error)

Request STS Credentials.

type TokenProvider added in v0.11.0

type TokenProvider func() (string, error)

Function called once STS requires OATH TOTP MFA Token during the AssumeRoleProvider execution.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳