azureappconfigversion

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 3 Imported by: 0

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

View Source
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

func ParseDiffArgs

func ParseDiffArgs(args []string) (*Spec, *Spec, error)

ParseDiffArgs parses diff command arguments for Azure App Configuration. Two bare keys may be compared; any version specifier yields ErrVersioningUnsupported.

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

func Parse(input string) (*Spec, error)

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.

Jump to

Keyboard shortcuts

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