aws

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package aws adapts explicit AWS Secrets Manager and SSM references.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(raw string) (provider.Reference, error)

Types

type Factory

type Factory struct{}

func (Factory) Adapter

func (Factory) CapabilityPrefixes

func (Factory) CapabilityPrefixes() []string

func (Factory) Parse

func (Factory) Parse(raw string) (provider.Reference, error)

type SSM

type SSM struct {
	C SSMAPI
	// contains filtered or unexported fields
}

func (*SSM) ReadMany

func (s *SSM) ReadMany(ctx context.Context, refs []provider.Reference) (map[string]provider.ReadResult, error)

func (*SSM) Rollback

func (s *SSM) Rollback(ctx context.Context, ref provider.Reference) error

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.

func (*SSM) WriteMany

func (s *SSM) WriteMany(ctx context.Context, writes []provider.Write) (provider.Receipt, error)

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) ReadMany

func (s *Secrets) ReadMany(ctx context.Context, refs []provider.Reference) (map[string]provider.ReadResult, error)

func (*Secrets) Rollback

func (s *Secrets) Rollback(ctx context.Context, ref provider.Reference) error

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).

func (*Secrets) WriteMany

func (s *Secrets) WriteMany(ctx context.Context, writes []provider.Write) (provider.Receipt, error)

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)
}

Jump to

Keyboard shortcuts

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