Documentation
¶
Overview ¶
Package awssecrets provides an implementation of fs.ReadFileFS that reads secrets from the AWS secretsmanager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { ListSecretVersionIds(ctx context.Context, params *secretsmanager.ListSecretVersionIdsInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.ListSecretVersionIdsOutput, error) GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error) }
Client represents the set of AWS S3 client methods used by s3fs.
type Option ¶
type Option func(o *options)
Option represents an option to New.
func WithSecretsClient ¶
WithSecretsClient specifies the secretsmanager.Client to use. If not specified, a new is created.
func WithSecretsOptions ¶
func WithSecretsOptions(opts ...func(*secretsmanager.Options)) Option
WithSecretsOptions wraps secretsmanager.Options for use when creating an s3.Client.
type T ¶
type T struct {
// contains filtered or unexported fields
}
T implements fs.ReadFileFS for secretsmanager.
func NewSecretsFS ¶
NewSecretsFS creates a new instance of T.
Click to show internal directories.
Click to hide internal directories.