aws

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_STAGES = 20
)

Variables

This section is empty.

Functions

func CancelDeletion

func CancelDeletion(ctx context.Context, client *secretsmanager.Client, secretID string) error

func CheckIfUpdate

func CheckIfUpdate(ctx context.Context, client *secretsmanager.Client, secretId string, updatedString string) (bool, error)

CheckIfUpdate takes a context with an AWS secretsmanager client and will check the secretId's content on AWS and compare it to the updatedString, returning true or false if it is changed

func CreateSecret

func CreateSecret(ctx context.Context, client *secretsmanager.Client, secretID string, secretString string) error

func HandleUpdateCreate

func HandleUpdateCreate(ctx context.Context, client *secretsmanager.Client, secretID string, secretString string, createPrompt bool) error

func PullSecretsList

func PullSecretsList(ctx context.Context, client *secretsmanager.Client, nextToken *string, filter []types.Filter) (*secretsmanager.ListSecretsOutput, error)

func RollbackSecret

func RollbackSecret(ctx context.Context, client *secretsmanager.Client, secretId string) error

RollbackSecret takes a secretId and will rollback the changes to the previous version

func ScheduleDeletion

func ScheduleDeletion(ctx context.Context, client *secretsmanager.Client, secretID string, recoveryWindow int64) error

func UpdateSecretString

func UpdateSecretString(ctx context.Context, client *secretsmanager.Client, secretId, secretString string) error

UpdateSecretString pushes an updated secretString to the secretId on AWS

Types

type SecretVersion

type SecretVersion struct {
	Stages  []string
	Id      *string
	Version uint
}

Jump to

Keyboard shortcuts

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