Documentation
¶
Overview ¶
Package paramversion provides version resolution for AWS Systems Manager Parameter Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidVersion = errors.New("# must be followed by a version number")
ErrInvalidVersion is returned when # is not followed by a version number.
Functions ¶
func GetParameterWithVersion ¶
func GetParameterWithVersion(ctx context.Context, client Client, spec *Spec) (*paramapi.ParameterHistory, error)
GetParameterWithVersion retrieves a parameter with version/shift support. SecureString values are always decrypted.
Types ¶
type AbsoluteSpec ¶
type AbsoluteSpec struct {
Version *int64 // Explicit version number (#VERSION)
}
AbsoluteSpec represents the absolute version specifier for SSM Parameter Store.
type Client ¶
type Client interface {
paramapi.GetParameterAPI
paramapi.GetParameterHistoryAPI
}
Client is the interface for GetParameterWithVersion.
type Spec ¶
type Spec = version.Spec[AbsoluteSpec]
Spec represents a parsed SSM Parameter Store parameter version specification.
Grammar: <name>[#<N>]<shift>*
- #<N> optional version number (0 or 1)
- <shift> ~ or ~<N>, repeatable (0 or more, cumulative)
Examples: /my/param, /my/param#3, /my/param~1, /my/param#5~2, /my/param~~.
Click to show internal directories.
Click to hide internal directories.