Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AWSSecretsManagerResourceExistsException *smtypes.ResourceExistsException AWSSecretsManagerInvalidRequestException *smtypes.InvalidRequestException )
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
AWSClient is a client for interacting with AWS Secrets Manager.
func NewAWSClient ¶
func NewAWSClient(client SecretsManagerClient, logger *slog.Logger) *AWSClient
NewAWSClient creates a new AWSClient.
func NewDefaultAWSClient ¶
NewAWSClient creates a new AWSClient with the default configuration.
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func NewLocalClient(logger *slog.Logger) (*LocalClient, error)
type SecretsManagerClient ¶
type SecretsManagerClient interface { CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error) GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error) PutSecretValue(ctx context.Context, params *secretsmanager.PutSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.PutSecretValueOutput, error) }
SecretsManagerClient is an interface for the AWS Secrets Manager client.
Click to show internal directories.
Click to hide internal directories.