_util
_util
¶
Vendored utility functions — standalone, no terok-agent domain deps.
ensure_dir(path)
¶
ensure_dir_writable(path, label)
¶
Create path if needed and verify it is writable, or exit with an error.
Source code in src/terok_agent/_util/_fs.py
podman_userns_args()
¶
Return user namespace args for rootless podman so UID 1000 maps correctly.
Maps the host user to container UID/GID 1000, the conventional non-root
dev user in terok container images.