aws_secrets_manager

package
v0.0.0-...-a17cf7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) Decrypt

func (a *AWSSecretsMgr) Decrypt(
	_ string,
	_ string,
	_ map[string]string,
) (string, error)

func (*AWSSecretsMgr) Delete

func (a *AWSSecretsMgr) Delete(_ context.Context, key secrets.SecretKey) error

func (*AWSSecretsMgr) DeleteSecret

func (a *AWSSecretsMgr) DeleteSecret(
	secretID string,
	keyContext map[string]string,
) error

func (*AWSSecretsMgr) Encrypt

func (a *AWSSecretsMgr) Encrypt(
	_ string,
	_ string,
	_ map[string]string,
) (string, error)

func (*AWSSecretsMgr) Get

func (a *AWSSecretsMgr) Get(_ context.Context, key secrets.SecretKey) (map[string]interface{}, error)

func (*AWSSecretsMgr) GetSecret

func (a *AWSSecretsMgr) GetSecret(
	secretID string,
	_ map[string]string,
) (map[string]interface{}, secrets.Version, error)

func (*AWSSecretsMgr) ListSecrets

func (a *AWSSecretsMgr) ListSecrets() ([]string, error)

func (*AWSSecretsMgr) PutSecret

func (a *AWSSecretsMgr) PutSecret(
	secretID string,
	secretData map[string]interface{},
	_ map[string]string,
) (secrets.Version, error)

func (*AWSSecretsMgr) Rencrypt

func (a *AWSSecretsMgr) Rencrypt(
	_ string,
	_ string,
	_ map[string]string,
	_ map[string]string,
	_ string,
) (string, error)

func (*AWSSecretsMgr) Set

func (a *AWSSecretsMgr) Set(_ context.Context, key secrets.SecretKey, secret map[string]interface{}) error

func (*AWSSecretsMgr) String

func (a *AWSSecretsMgr) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL