Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + const CurrentVersion + const DefaultKeyPrefix + const PreviousVersion + func Key(parts ...string) string + type AWSSecretsManager struct + func NewAWSSecretsManager(cfg AWSSecretsManagerConfig) (*AWSSecretsManager, error) + func (s *AWSSecretsManager) CreateOrUpdate(ctx context.Context, key string, value string) error + func (s *AWSSecretsManager) Delete(ctx context.Context, key string) error + func (s *AWSSecretsManager) GetValue(ctx context.Context, key string, version string) (*Value, error) + func (s *AWSSecretsManager) PutValue(ctx context.Context, key, value, currentVersion string) error + type AWSSecretsManagerConfig struct + Client secretsmanageriface.SecretsManagerAPI + KMSKeyID string + KeyPrefix string + func (c *AWSSecretsManagerConfig) CheckAndSetDefaults() error + type MockSecretsManagerClient struct + func NewMockSecretsManagerClient(cfg MockSecretsManagerClientConfig) *MockSecretsManagerClient + func (m *MockSecretsManagerClient) CreateSecretWithContext(_ context.Context, input *secretsmanager.CreateSecretInput, ...) (*secretsmanager.CreateSecretOutput, error) + func (m *MockSecretsManagerClient) DeleteSecretWithContext(_ context.Context, input *secretsmanager.DeleteSecretInput, ...) (*secretsmanager.DeleteSecretOutput, error) + func (m *MockSecretsManagerClient) DescribeSecretWithContext(_ context.Context, input *secretsmanager.DescribeSecretInput, ...) (*secretsmanager.DescribeSecretOutput, error) + func (m *MockSecretsManagerClient) GetSecretValueWithContext(_ context.Context, input *secretsmanager.GetSecretValueInput, ...) (*secretsmanager.GetSecretValueOutput, error) + func (m *MockSecretsManagerClient) PutSecretValueWithContext(_ context.Context, input *secretsmanager.PutSecretValueInput, ...) (*secretsmanager.PutSecretValueOutput, error) + func (m *MockSecretsManagerClient) UpdateSecretWithContext(_ context.Context, input *secretsmanager.UpdateSecretInput, ...) (*secretsmanager.UpdateSecretOutput, error) + type MockSecretsManagerClientConfig struct + Account string + Clock clockwork.Clock + Region string + func (c *MockSecretsManagerClientConfig) SetDefaults() + type Secrets interface + CreateOrUpdate func(ctx context.Context, key, value string) error + Delete func(ctx context.Context, key string) error + GetValue func(ctx context.Context, key, version string) (*Value, error) + PutValue func(ctx context.Context, key, value, currentVersion string) error + type Value struct + CreatedAt time.Time + Key string + Value string + Version string