Documentation ¶
Index ¶
- type SecretsClient
- type SecretsClientOpt
- func AccessKeyIDAndSecretAccessKey(accessKeyID, secretAccessKey string) SecretsClientOpt
- func CacheTTL(ttl time.Duration) SecretsClientOpt
- func Profile(profile string) SecretsClientOpt
- func Region(region string) SecretsClientOpt
- func UseChainCredentials() SecretsClientOpt
- func WithContext(ctx context.Context) SecretsClientOpt
- func WithMockClient(api SecretsManagerGetSecretAPI) SecretsClientOpt
- type SecretsManagerGetSecretAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretsClient ¶ added in v1.8.0
type SecretsClient struct { common.SecretClient // contains filtered or unexported fields }
func NewSecretsClient ¶ added in v1.8.0
func NewSecretsClient(opts ...SecretsClientOpt) (*SecretsClient, error)
func (*SecretsClient) GetJSONSecret ¶ added in v1.8.0
func (c *SecretsClient) GetJSONSecret(secretName, secretKey string) (string, error)
func (*SecretsClient) GetSecret ¶ added in v1.8.5
func (c *SecretsClient) GetSecret(secretName string) (string, string, error)
func (*SecretsClient) GetTextSecret ¶ added in v1.8.0
func (c *SecretsClient) GetTextSecret(secretName string) (string, error)
type SecretsClientOpt ¶ added in v1.8.0
type SecretsClientOpt interface {
// contains filtered or unexported methods
}
func AccessKeyIDAndSecretAccessKey ¶ added in v1.8.0
func AccessKeyIDAndSecretAccessKey(accessKeyID, secretAccessKey string) SecretsClientOpt
func CacheTTL ¶ added in v1.6.0
func CacheTTL(ttl time.Duration) SecretsClientOpt
func Profile ¶
func Profile(profile string) SecretsClientOpt
func Region ¶
func Region(region string) SecretsClientOpt
func UseChainCredentials ¶
func UseChainCredentials() SecretsClientOpt
func WithContext ¶ added in v1.8.4
func WithContext(ctx context.Context) SecretsClientOpt
func WithMockClient ¶ added in v1.8.5
func WithMockClient(api SecretsManagerGetSecretAPI) SecretsClientOpt
type SecretsManagerGetSecretAPI ¶ added in v1.8.5
type SecretsManagerGetSecretAPI interface {
GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(options *secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}
Click to show internal directories.
Click to hide internal directories.