Documentation ¶
Index ¶
- func CreateSecret(ctx context.Context, api SecretsManagerCreateSecretAPI, name string, ...) (string, error)
- func DeleteSecret(ctx context.Context, api SecretsManagerDeleteSecretAPI, secretId string) error
- func GetSecret(ctx context.Context, api SecretsManagerGetSecretAPI, secretId string) (string, error)
- func ListSecrets(ctx context.Context, api SecretsManagerListSecretAPI) ([]string, error)
- func UpdateSecret(ctx context.Context, api SecretsManagerUpdateSecretAPI, secretId string, ...) error
- type SecretsManagerCreateSecretAPI
- type SecretsManagerDeleteSecretAPI
- type SecretsManagerGetSecretAPI
- type SecretsManagerListSecretAPI
- type SecretsManagerUpdateSecretAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecret ¶
func CreateSecret(ctx context.Context, api SecretsManagerCreateSecretAPI, name string, value string, description string) (string, error)
This creates a secret and returns out its ARN.
func DeleteSecret ¶
func DeleteSecret(ctx context.Context, api SecretsManagerDeleteSecretAPI, secretId string) error
func ListSecrets ¶
func ListSecrets(ctx context.Context, api SecretsManagerListSecretAPI) ([]string, error)
func UpdateSecret ¶
Types ¶
type SecretsManagerCreateSecretAPI ¶
type SecretsManagerCreateSecretAPI interface { CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error) }
type SecretsManagerDeleteSecretAPI ¶
type SecretsManagerDeleteSecretAPI interface { DeleteSecret(ctx context.Context, params *secretsmanager.DeleteSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.DeleteSecretOutput, error) }
type SecretsManagerGetSecretAPI ¶
type SecretsManagerGetSecretAPI interface { GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error) }
type SecretsManagerListSecretAPI ¶
type SecretsManagerListSecretAPI interface { ListSecrets(ctx context.Context, params *secretsmanager.ListSecretsInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.ListSecretsOutput, error) }
type SecretsManagerUpdateSecretAPI ¶
type SecretsManagerUpdateSecretAPI interface { UpdateSecret(ctx context.Context, params *secretsmanager.UpdateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error) }
Click to show internal directories.
Click to hide internal directories.