credentials

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(cfg AwsConfig) aws.Config

Types

type AwsConfig

type AwsConfig struct {
	RoleName    string `yaml:"role_name"`
	AccountID   string `yaml:"account_id"`
	SessionName string `yaml:"session_name"`
	Region      string `yaml:"region"`
}

type RoleCredentialProvider

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

func NewRoleCredentialProvider

func NewRoleCredentialProvider(
	stsClient *sts.Client,
	awsConfig AwsConfig,
	sessionPrefix string,
) *RoleCredentialProvider

func (*RoleCredentialProvider) Retrieve

func (self *RoleCredentialProvider) Retrieve(ctx context.Context) (aws.Credentials, error)

Retrieve implements aws.CredentialsProvider.

Jump to

Keyboard shortcuts

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