agents: define the work dir name once and test its creation
This commit is contained in:
parent
8e0597d41d
commit
6ff348d88b
5 changed files with 18 additions and 3 deletions
|
|
@ -30,6 +30,10 @@ use std::path::{Path, PathBuf};
|
|||
// its own callsites.
|
||||
pub use hive_host_sock::{AGENTS_ROOT, GATEWAY_HTPASSWD, HOST_SOCKET, agent_state_dir};
|
||||
|
||||
/// Name of the per-agent working dir under `agents/<name>/`, a sibling of
|
||||
/// `state/`. Bound RW into the container at `/agents/<name>/work`.
|
||||
pub const WORK_SUBDIR: &str = "work";
|
||||
|
||||
/// Root of all hive-c0re persistent state.
|
||||
// nix: the same literal is written in `nix/host-modules/hive-c0re/default.nix` — must match.
|
||||
// Not option-driven: there is no `statePath` option, the path is hardcoded both sides.
|
||||
|
|
|
|||
Loading…
Reference in a new issue