Documentation ¶
Overview ¶
Package awsvault exposes github.com/99designs/aws-vault as library.
Index ¶
- func AwsVault(ctx context.Context, args ...string) error
- func AwsVaultCredentials(ctx context.Context, awsProfile string) (aws.Credentials, error)
- func AwsVaultEnv(ctx context.Context, awsProfile string) (map[string]string, error)
- func AwsVaultExec(ctx context.Context, awsProfile string, args ...string) error
- func AwsWithEnvCredentials(ctx context.Context, awsProfile string, fn func() error) error
- func CredentialToEnvMap(creds aws.Credentials) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwsVaultCredentials ¶
AwsVaultCredentials fetches aws vault credentials.
func AwsVaultEnv ¶
AwsVaultEnv fetches aws vault credentials in env format.
func AwsVaultExec ¶
AwsVaultExec executes command inside subshell with aws credentials.
func AwsWithEnvCredentials ¶
AwsWithEnvCredentials sets aws credentials in environment variables, executes given functions and unsets env.
func CredentialToEnvMap ¶
func CredentialToEnvMap(creds aws.Credentials) map[string]string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.