aws

package
v0.0.0-...-bd3f3ed Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSCDKToolkit

func AWSCDKToolkit() schema.Executable

func AWSCLI

func AWSCLI() schema.Executable

func AccessKey

func AccessKey() schema.CredentialType

func DetectSourceProfileLoop

func DetectSourceProfileLoop(profile string, config *confighelpers.ConfigFile) error

func ExecuteSilently

func ExecuteSilently[input interface{}, output interface{}, e error](f func(input) (output, e)) func(input) (output, e)

func GetTemporaryCredentialsProviderForProfile

func GetTemporaryCredentialsProviderForProfile(awsConfig *confighelpers.Config, providerFactory STSProviderFactory, itemFields map[sdk.FieldName]string) (aws.CredentialsProvider, error)

GetTemporaryCredentialsProviderForProfile returns the aws provider that fits the scenario described by the current configuration.

func New

func New() schema.Plugin

func NewSTSCacheWriter

func NewSTSCacheWriter(key string, cache sdk.CacheOperations) stsCacheWriter

func NewStsCacheProvider

func NewStsCacheProvider(key string, cache sdk.CacheState) aws.CredentialsProvider

func TryAWSVaultBackends

func TryAWSVaultBackends() sdk.Importer

TryAWSVaultBackends looks for AWS credentials in the user's vaulting backends, using functionality provided by AWS Vault.

func TryCredentialsFile

func TryCredentialsFile() sdk.Importer

TryCredentialsFile looks for the access key in the ~/.aws/credentials file.

Types

type CLIProvisioner

type CLIProvisioner struct {
}

func (CLIProvisioner) Deprovision

func (CLIProvisioner) Description

func (p CLIProvisioner) Description() string

func (CLIProvisioner) Provision

func (p CLIProvisioner) Provision(ctx context.Context, in sdk.ProvisionInput, out *sdk.ProvisionOutput)

type CacheProviderFactory

type CacheProviderFactory struct {
	InCache    sdk.CacheState
	OutCache   sdk.CacheOperations
	ItemFields map[sdk.FieldName]string
}

CacheProviderFactory 's functions return AWS providers that are also handling reading and writing from shell plugin's encrypted cache

func (CacheProviderFactory) NewAccessKeysProvider

func (m CacheProviderFactory) NewAccessKeysProvider() aws.CredentialsProvider

func (CacheProviderFactory) NewAssumeRoleProvider

func (m CacheProviderFactory) NewAssumeRoleProvider(awsConfig *confighelpers.Config, sourcedCredentialsProvider aws.CredentialsProvider) aws.CredentialsProvider

func (CacheProviderFactory) NewMFASessionTokenProvider

func (m CacheProviderFactory) NewMFASessionTokenProvider(awsConfig *confighelpers.Config, sourcedCredentialsProvider aws.CredentialsProvider) aws.CredentialsProvider

type ProfileInfoToImport

type ProfileInfoToImport struct {
	Name      string
	MfaSerial string
	Region    string
}

func GetProfilesInfo

func GetProfilesInfo() ([]ProfileInfoToImport, error)

type STSProviderFactory

type STSProviderFactory interface {
	NewAssumeRoleProvider(awsConfig *confighelpers.Config, sourcedCredentialsProvider aws.CredentialsProvider) aws.CredentialsProvider
	NewMFASessionTokenProvider(awsConfig *confighelpers.Config, sourcedCredentialsProvider aws.CredentialsProvider) aws.CredentialsProvider
	NewAccessKeysProvider() aws.CredentialsProvider
}

type STSProvisioner

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

func NewSTSProvisioner

func NewSTSProvisioner(profileName string) STSProvisioner

func (STSProvisioner) Deprovision

func (STSProvisioner) Description

func (p STSProvisioner) Description() string

func (STSProvisioner) Provision

func (p STSProvisioner) Provision(ctx context.Context, in sdk.ProvisionInput, out *sdk.ProvisionOutput)

Jump to

Keyboard shortcuts

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