Documentation
¶
Overview ¶
Package awssecretversion provides version spec parsing and display helpers for AWS Secrets Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidID = errors.New("# must be followed by a version ID") ErrInvalidLabel = errors.New(": must be followed by a label") )
Secrets Manager-specific errors.
Functions ¶
func ParseDiffArgs ¶
ParseDiffArgs parses diff command arguments for Secrets Manager. This is a convenience wrapper around diff.ParseArgs with Secrets Manager-specific settings.
func TruncateVersionID ¶
TruncateVersionID truncates a version ID to a readable short form.
Types ¶
type AbsoluteSpec ¶
type AbsoluteSpec struct {
ID *string // Version ID (#VERSION)
Label *string // Staging label (:LABEL)
}
AbsoluteSpec represents the absolute version specifier for Secrets Manager.
type Spec ¶
type Spec = version.Spec[AbsoluteSpec]
Spec represents a parsed Secrets Manager secret version specification.
Grammar: <name>[#<id> | :<label>]<shift>*
- #<id> optional version ID (0 or 1, mutually exclusive with :LABEL)
- :<label> optional staging label (0 or 1, mutually exclusive with #VERSION)
- <shift> ~ or ~<N>, repeatable (0 or more, cumulative)
Examples: my-secret, my-secret#abc123, my-secret:AWSCURRENT, my-secret~1.
Click to show internal directories.
Click to hide internal directories.