Documentation
¶
Overview ¶
Package aws adapts explicit AWS Secrets Manager and SSM references.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SSM ¶
type SSM struct {
C SSMAPI
// contains filtered or unexported fields
}
func (*SSM) Rollback ¶
Rollback fetches the value one version behind the parameter's current version and writes it again as a new version. Unlike Secrets.Rollback, SSM Parameter Store has no movable "current" pointer to swap — every PutParameter call always creates a new, incrementing version — so this is a best-effort "write the previous value back" rather than a true revert: rolling back twice in a row does not return to the value from three writes ago, it just re-applies whatever was one version behind at the time each rollback ran.
type SSMAPI ¶
type SSMAPI interface {
GetParameter(context.Context, *ssm.GetParameterInput, ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
PutParameter(context.Context, *ssm.PutParameterInput, ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
}
type Secrets ¶
type Secrets struct {
C SecretsAPI
// contains filtered or unexported fields
}
func (*Secrets) Rollback ¶
Rollback moves AWSCURRENT back to whatever AWSPREVIOUS currently points at — the exact inverse of the promotion WriteMany performs, so it's a single compare-and-swap-free stage move rather than a new write. It fails with InvalidState if there is no distinct previous version (e.g. the secret has only ever been written once).
type SecretsAPI ¶
type SecretsAPI interface {
GetSecretValue(context.Context, *sm.GetSecretValueInput, ...func(*sm.Options)) (*sm.GetSecretValueOutput, error)
CreateSecret(context.Context, *sm.CreateSecretInput, ...func(*sm.Options)) (*sm.CreateSecretOutput, error)
PutSecretValue(context.Context, *sm.PutSecretValueInput, ...func(*sm.Options)) (*sm.PutSecretValueOutput, error)
UpdateSecretVersionStage(context.Context, *sm.UpdateSecretVersionStageInput, ...func(*sm.Options)) (*sm.UpdateSecretVersionStageOutput, error)
}