Skip to main content

Module extensions

Module extensions 

Source
Expand description

gtc op extensions {add,update,remove,rollback,list} (Path 3).

Manages Environment.extensions: Vec<ExtensionBinding> — the env’s open-namespace capability bindings. Unlike op env-packs (which manages the closed, 1-per-slot core packs), extensions are N-per-env: their slot is always CapabilitySlot::Extension, and identity is (kind.path(), instance_id) — the descriptor path plus an optional instance selector for N instances of the same extension type.

A workload resolves a binding by name at runtime via ext://<path>[/<instance>]; no typed host interface is wired. Mutations bump ExtensionBinding::generation and stash the prior binding inline so rollback can restore it, reusing the same one-step machinery as env-packs.

Structs§

ExtensionBindingPayload
Payload for op extensions add / op extensions update.
ExtensionRemovePayload
Payload for op extensions remove / op extensions rollback. Identifies a binding by (kind.path(), instance_id) — the descriptor @<version> is ignored for matching (the path is the version-independent key).
ExtensionSummary
Returned by every mutating call.

Functions§

add
list
remove
rollback
update