secret_manager

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("secret-manager")

Functions

func AppendSecret

func AppendSecret(credentialInfo utility.CredentialInfo, updatedSecret utility.SecretContent) error

func CreateAccount

func CreateAccount(credential utility.CredentialInfo, secret utility.SecretContent) error

func CreateSecret

func CreateSecret(credentialInfo utility.CredentialInfo, secretContent utility.SecretContent) error

func DeleteSecret

func DeleteSecret(credentialInfo utility.CredentialInfo, recoveryDays int64) error

IAM user required permission to call DeleteSecret function:

  • secretsmanager:DeleteSecret

Note:

recoveryDays should be 7 days at minimum

func DeleteSingleSecretEntry

func DeleteSingleSecretEntry(credentialInfo utility.CredentialInfo, entryName string) error

func Deleteenv

func Deleteenv(credential utility.CredentialInfo) error

func GetSecret

func GetSecret(credentialInfo utility.CredentialInfo) (string, error)

func GetSingleSecretEntry

func GetSingleSecretEntry(credential utility.CredentialInfo, entryName string) (string, error)

func Getenv

func Getenv(credential utility.CredentialInfo) (string, error)

func InitEnv

func InitEnv()

func Setenv

func Setenv(credential utility.CredentialInfo, secret utility.SecretContent) error

func UpdateAccount

func UpdateAccount(credential utility.CredentialInfo, secret utility.SecretContent) error

func UpdateSecret

func UpdateSecret(credentialInfo utility.CredentialInfo, updatedSecret utility.SecretContent) error

func Updateenv

func Updateenv(credential utility.CredentialInfo, secret utility.SecretContent) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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