Skip to main content

Module isolation_metadata

Module isolation_metadata 

Source
Expand description

Metadata helpers for isolated executions.

Builds the human-readable [Isolation] status lines and the execution record options map that describe how an isolated command was launched, including the configurable Docker runtime options (volumes, mounts, environment variables, privileged mode). Kept separate from isolation so the runtime backends and the metadata representation can evolve independently.

Functionsยง

build_isolation_options_map
Build the execution-record options map describing how an isolated command was launched (environment, mode, session, image, docker runtime options, endpoint, user, keep-alive). Used to persist the execution record so it can be surfaced via --status/--list.
docker_runtime_metadata
Build the execution-record metadata entries for docker runtime options. Returns (key, value) pairs to merge into the options map; empty collections and a false privileged flag contribute no entries.
docker_runtime_status_lines
Build the human-readable [Isolation] status lines for docker runtime options (volumes, mounts, env, privileged). Used for the start block and log header; empty collections contribute no lines.
docker_runtime_status_lines_for_options
Build Docker runtime status lines directly from parsed wrapper options.