aws

package
v0.0.0-...-3c2e68c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AWSAccessKeyIDEnvVar = "AWS_ACCESS_KEY_ID"
View Source
const AWSRegionEnvVar = "AWS_REGION"
View Source
const AWSSecretAccessKeyEnvVar = "AWS_SECRET_ACCESS_KEY"
View Source
const AWSSessionExpiryEnvVar = "AWS_SESSION_EXPIRATION"
View Source
const AWSSessionTokenEnvVar = "AWS_SESSION_TOKEN"

Variables

View Source
var CLUDOD_SESSION = "CLUDOD_SESSION"

This has to be a var so we can take a pointer for it

Functions

This section is empty.

Types

type AWSPlugin

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

func New

func New(region string, stsClient STSGetSessionTokenAPI, sessionDuration time.Duration, roleArn string) *AWSPlugin

func NewAWSPlugin

func NewAWSPlugin(accessKeyID string, secretAccessKey string, region string, sessionDuration time.Duration, roleARN string) (*AWSPlugin, error)

func (*AWSPlugin) GenerateEnvironment

func (ap *AWSPlugin) GenerateEnvironment() (*models.ModelsEnvironmentResponse, error)

type STSGetSessionTokenAPI

type STSGetSessionTokenAPI interface {
	GetSessionToken(input *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error)
	AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
}

Jump to

Keyboard shortcuts

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