Documentation ¶
Index ¶
- Variables
- func AppendSecret(credentialInfo utility.CredentialInfo, updatedSecret utility.SecretContent) error
- func CreateAccount(credential utility.CredentialInfo, secret utility.SecretContent) error
- func CreateSecret(credentialInfo utility.CredentialInfo, secretContent utility.SecretContent) error
- func DeleteSecret(credentialInfo utility.CredentialInfo, recoveryDays int64) error
- func DeleteSingleSecretEntry(credentialInfo utility.CredentialInfo, entryName string) error
- func Deleteenv(credential utility.CredentialInfo) error
- func GetSecret(credentialInfo utility.CredentialInfo) (string, error)
- func GetSingleSecretEntry(credential utility.CredentialInfo, entryName string) (string, error)
- func Getenv(credential utility.CredentialInfo) (string, error)
- func InitEnv()
- func Setenv(credential utility.CredentialInfo, secret utility.SecretContent) error
- func UpdateAccount(credential utility.CredentialInfo, secret utility.SecretContent) error
- func UpdateSecret(credentialInfo utility.CredentialInfo, updatedSecret utility.SecretContent) error
- func Updateenv(credential utility.CredentialInfo, secret utility.SecretContent) error
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 GetSingleSecretEntry ¶
func GetSingleSecretEntry(credential utility.CredentialInfo, entryName string) (string, error)
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.
Click to show internal directories.
Click to hide internal directories.