Documentation ¶
Index ¶
- Constants
- type AWSSecretsMgr
- func (a *AWSSecretsMgr) Decrypt(_ string, _ string, _ map[string]string) (string, error)
- func (a *AWSSecretsMgr) Delete(_ context.Context, key secrets.SecretKey) error
- func (a *AWSSecretsMgr) DeleteSecret(secretID string, keyContext map[string]string) error
- func (a *AWSSecretsMgr) Encrypt(_ string, _ string, _ map[string]string) (string, error)
- func (a *AWSSecretsMgr) Get(_ context.Context, key secrets.SecretKey) (map[string]interface{}, error)
- func (a *AWSSecretsMgr) GetSecret(secretID string, _ map[string]string) (map[string]interface{}, secrets.Version, error)
- func (a *AWSSecretsMgr) ListSecrets() ([]string, error)
- func (a *AWSSecretsMgr) PutSecret(secretID string, secretData map[string]interface{}, _ map[string]string) (secrets.Version, error)
- func (a *AWSSecretsMgr) Rencrypt(_ string, _ string, _ map[string]string, _ map[string]string, _ string) (string, error)
- func (a *AWSSecretsMgr) Set(_ context.Context, key secrets.SecretKey, secret map[string]interface{}) error
- func (a *AWSSecretsMgr) String() string
Constants ¶
View Source
const ( // Name of the secret store Name = secrets.TypeAWSSecretsManager // SecretRetentionPeriodInDaysKey is passed through context to the DeleteSecret API SecretRetentionPeriodInDaysKey = "secret-retention-period-in-days" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSecretsMgr ¶
type AWSSecretsMgr struct {
// contains filtered or unexported fields
}
AWSSecretsMgr is backend for secrets.SecretStore.
func New ¶
func New( secretConfig map[string]interface{}, ) (*AWSSecretsMgr, error)
New creates new instance of AWSSecretsMgr with provided configuration.
func NewFromAWSConfig ¶
func NewFromAWSConfig(config *aws.Config) (*AWSSecretsMgr, error)
NewFromAWSConfig creates new instance of AWSSecretsMgr with provided AWS configuration (aws.Config).
func (*AWSSecretsMgr) DeleteSecret ¶
func (a *AWSSecretsMgr) DeleteSecret( secretID string, keyContext map[string]string, ) error
func (*AWSSecretsMgr) ListSecrets ¶
func (a *AWSSecretsMgr) ListSecrets() ([]string, error)
func (*AWSSecretsMgr) String ¶
func (a *AWSSecretsMgr) String() string
Click to show internal directories.
Click to hide internal directories.