Documentation ¶
Overview ¶
Package secretsmanager implements sidecred.SecretStore on top of AWS Secrets Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client SecretsManagerAPI, options ...option) sidecred.SecretStore
New creates a new sidecred.SecretStore using AWS Secrets Manager.
func WithSecretTemplate ¶ added in v0.7.0
func WithSecretTemplate(t string) option
WithSecretTemplate sets the path template when instantiating a new store.
Types ¶
type SecretsManagerAPI ¶
type SecretsManagerAPI interface { CreateSecret(input *secretsmanager.CreateSecretInput) (*secretsmanager.CreateSecretOutput, error) UpdateSecret(input *secretsmanager.UpdateSecretInput) (*secretsmanager.UpdateSecretOutput, error) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) DeleteSecret(input *secretsmanager.DeleteSecretInput) (*secretsmanager.DeleteSecretOutput, error) }
SecretsManagerAPI wraps the interface for the API and provides a mocked implementation.
func NewClient ¶
func NewClient(sess *session.Session) SecretsManagerAPI
NewClient returns a new SecretsManagerAPI client.
Click to show internal directories.
Click to hide internal directories.