Expand description
Container engine command lines (pure; unit-tested without an engine).
The image is a minimal layer over an operator-pinned base (by digest) holding only the one verified binary, built locally: no registry pull other than the pinned base, which must already be present.
Structs§
- CmdOutput
- Output of one engine CLI call.
- RunLimits
- Resource and isolation flags for a run.
- RunSpec
- Everything a
runneeds. - System
Runner - Runs commands with
tokio::process.
Enums§
- Engine
- A container engine.
Constants§
- COG_
PATH - Where the binary lives in the image.
- CONTAINER_
USER - Unprivileged uid:gid inside the container (
nobody). - DATA_
DIR - Writable tmpfs for
COGNITUM_COG_DATA_DIR. - ENGINE_
STARTUP_ SECS - Allowance on top of
max_runtime_secsfor container creation / VM boot. - PIDS_
LIMIT - Task (process + thread) cap for a cog container.
Traits§
- Command
Runner - Runs engine CLI commands. Mocked in unit tests;
SystemRunnerin use.
Functions§
- build_
cmd buildcommand.- container_
name - Container-name-safe form of an instance id.
- dockerfile
- Dockerfile for the one-binary layer.
- image_
tag - Image tag for a binary:
weftos-cog/<id>:<16 hex of its BLAKE3>. - parse_
inspect - Parse
(running, exit_code)frominspectoutput. - rm_cmd
- Force-remove command.
- rmi_cmd
- Remove-image command.
- run_cmd
runcommand.- stop_
cmd stopcommand.- validate_
base_ image - Validate an operator-pinned base image reference (
name@sha256:<64 hex>).