awssecrets

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 7 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 awssecrets plans a SecretMap projection without SDK or network access.

Index

Constants

View Source
const (
	MaxNameBytes  = 512
	MaxValueBytes = 65536
)

AWS limits belong to this projection, never to the semantic schema. https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_CreateSecret.html

Variables

View Source
var (
	ErrInvalidPlan = errors.New("invalid AWS Secrets Manager export plan")
)

Functions

This section is empty.

Types

type Options

type Options struct{ Prefix string }

type Plan

type Plan struct{ Secrets []Secret }

func Build

func Build(secrets secretmap.SecretMap, options Options) (Plan, error)

Build maps each semantic key to one AWS secret. Prefix is an explicit name namespace, with an optional leading/trailing slash. Nothing is path-cleaned or read from Artifact metadata: concatenation preserves distinct keys. Callers must use secretmap.ReadArtifact before passing untrusted artifacts.

func (Plan) Validate

func (p Plan) Validate() error

Validate also protects application of caller-constructed or modified plans. Errors never include secret values.

type Secret

type Secret struct {
	Name  string
	Value string
}

Directories

Path Synopsis
Package aws applies export plans through a caller-configured AWS SDK client.
Package aws applies export plans through a caller-configured AWS SDK client.

Jump to

Keyboard shortcuts

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