Documentation
¶
Overview ¶
Package bundler turns a pod.Container into an OCI runtime bundle on disk — the directory + config.json the OCI runtime (runc/crun) consumes.
We don't import github.com/opencontainers/runtime-spec to keep the module dep-free ; we emit only the fields we actually set, and the runtime fills defaults for the rest. The schema is OCI Runtime Specification v1.0.2.
Scope of this MVP:
- mono-container per pod: each container gets fresh pid/net/ uts/ipc/mount namespaces.
- pod-style namespace sharing (pause container pattern) is a follow-up: store the first container's PID, then emit `{"type": "network", "path": "/proc/<pid>/ns/net"}` for siblings instead of an empty entry that creates a new ns.
Index ¶
Constants ¶
View Source
const BundlesRoot = "/run/weft/bundles"
BundlesRoot is where Build() places per-container bundle dirs. One dir per container holds the generated config.json ; the rootfs is referenced by absolute path inside that config.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.