secrets_manager

package
v1.205.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecret added in v1.58.0

func CreateSecret(secretID string, secret any, isDebug bool) (awsSecretID string, err error)

CreateSecret Creates a JSON marshaled "string secret" (can be expanded to cater for binary secrets should the need arise)

func DeleteSecret added in v1.58.0

func DeleteSecret(secretID string, forceWithoutRecovery bool, isDebug bool) error

func GetS3UploadCredentials added in v1.55.0

func GetS3UploadCredentials(secretID string, isDebug bool) (*credentials2.Credentials, error)

func GetSecret

func GetSecret(secretID string, isDebug bool) (string, string)

func UpdateSecret added in v1.176.0

func UpdateSecret(secretID string, secret any, isDebug bool) error

UpdateSecret Updates an exising secret

Types

type DatabaseCredentials

type DatabaseCredentials struct {
	Username           string `json:"username"`
	Password           string `json:"password"`
	Engine             string `json:"engine"`
	Host               string `json:"host"`
	Port               int    `json:"port"`
	InstanceIdentifier string `json:"dbInstanceIdentifier"`
	ReadOnlyHost       string `json:"aurora_read_only_host"`
}

func GetDatabaseCredentials

func GetDatabaseCredentials(secretID string, isDebug bool) (DatabaseCredentials, error)

type S3UploadCredentials added in v1.55.0

type S3UploadCredentials struct {
	AccessKeyID string `json:"accessKeyID"`
	SecretKey   string `json:"secretKey"`
}

Jump to

Keyboard shortcuts

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