Documentation
¶
Overview ¶
Package azureappconfigversion provides version spec parsing for Azure App Configuration (bare key names only).
Azure App Configuration has NO versioning: a key/label pair holds a single current value with no version history. This parser therefore accepts a bare name only; ANY version specifier (#VERSION, ~SHIFT, or :LABEL) is rejected at parse time with ErrVersioningUnsupported, so the mistake produces a clean error before any API call rather than reaching the provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrVersioningUnsupported = errors.New("the Azure App Configuration store does not support versions")
ErrVersioningUnsupported is returned when any version specifier (#VERSION, ~SHIFT, or :LABEL) is used. Azure App Configuration does not support versions.
Functions ¶
Types ¶
type AbsoluteSpec ¶
type AbsoluteSpec struct{}
AbsoluteSpec is empty: Azure App Configuration has no absolute version specifier. It exists only to satisfy the shared version.Spec type parameter.
type Spec ¶
type Spec = version.Spec[AbsoluteSpec]
Spec represents a parsed Azure App Configuration "version" specification.
Grammar: <name> (bare name only; no specifiers permitted)
Examples: my-key, /app/config. Any #VERSION, ~SHIFT, or :LABEL is rejected.
func Parse ¶
Parse parses an Azure App Configuration key specification string. It accepts a bare name only; any version specifier yields ErrVersioningUnsupported.
Empty-input and empty-name errors from the shared grammar are surfaced unchanged; every other parse failure (a '#'/':' specifier, or a '~' shift) is normalized to ErrVersioningUnsupported so the caller gets one clear message.