Skip to main content

Module binding

Module binding 

Source
Expand description

Binding values, implicit search/foundry bindings, and the per-environment resolution cache.

Binding (a dependencies entry from rigg.yaml) and BindingType live here; workspace re-exports them so existing workspace::Binding paths keep compiling. EnvBindings is the read-only view combining an environment’s declared dependencies with its implicit search/ foundry targets, optionally enriched with cached resolution results.

Structs§

Binding
A named reference to a supporting Azure resource outside rigg’s own kinds, e.g. docs-storage: { storage: mklabstorageacc }. Serialized as a one-key map { "<type>": "<value>" }.
BindingCache
Per-environment cache of ResolvedBindings, persisted at .rigg/<env>/bindings.json.
BindingEntry
One entry in an EnvBindings table.
EnvBindings
One environment’s binding table: declared dependencies plus implicit search/foundry entries, optionally enriched from a BindingCache.
ResolvedBinding
A binding resolved against Azure, cached so later runs don’t have to re-discover it. Written by rigg env resolve (a later task); read by anything that needs a physical name, ARM id, or endpoint for a binding.

Enums§

BindingKind
How a BindingEntry came to exist in an EnvBindings table.
BindingType
The kind of supporting resource a Binding points at.
BindingValue
The parsed shape of a Binding’s value string.
TargetKind
What a ResolvedBinding resolved against Azure: a declared dependencies entry’s BindingType, or one of an environment’s implicit targets (its search service / foundry account), which are not dependency types and so deliberately stay out of BindingType.
Wanted
What EnvBindings::find_physical is looking for.

Constants§

RESERVED_BINDING_NAMES
Reserved dependency binding names — these name the search/foundry targets, not dependencies entries.

Functions§

arm_resource_group
The {resourceGroup} segment of .../resourceGroups/{resourceGroup}/....
arm_resource_name
The last path segment of an ARM resource id — the resource’s own name.
arm_subscription
The {subscription} segment of /subscriptions/{subscription}/....
validate_binding_name
Validate a dependencies binding name: lowercase kebab-case, not reserved, not empty.