pub struct JournalPaths { /* private fields */ }Expand description
Resolved on-disk locations for a repo’s release journals.
The releases root is git-common-dir/ossctl/releases (ADR-0003 §3), resolved
via GitRepo::git_common_dir — never by concatenating .git/ — or an
explicit override for CI / debugging (--journal-dir). All per-run paths and
the single-active-cut lock path are derived from it.
Implementations§
Source§impl JournalPaths
impl JournalPaths
Sourcepub fn new(releases_dir: impl Into<PathBuf>) -> Self
pub fn new(releases_dir: impl Into<PathBuf>) -> Self
Build paths rooted at an explicit releases_dir (the --journal-dir
override, or a test root).
Sourcepub fn from_git(git: &dyn GitRepo, override_dir: Option<&Path>) -> Result<Self>
pub fn from_git(git: &dyn GitRepo, override_dir: Option<&Path>) -> Result<Self>
Resolve the releases root from git — <git-common-dir>/ossctl/releases —
unless override_dir is supplied, in which case it is used verbatim.
§Errors
Propagates a GitRepo::git_common_dir failure (not a git repository, or
git unavailable) when no override is given.
Sourcepub fn releases_dir(&self) -> &Path
pub fn releases_dir(&self) -> &Path
The releases root (…/ossctl/releases).
Sourcepub fn journal_file(&self, run_id: &str) -> PathBuf
pub fn journal_file(&self, run_id: &str) -> PathBuf
The append-only event log for a run (…/<run_id>/journal.jsonl).
Sourcepub fn manifest_file(&self, run_id: &str) -> PathBuf
pub fn manifest_file(&self, run_id: &str) -> PathBuf
The materialized state cache for a run (…/<run_id>/manifest.json).
Trait Implementations§
Source§impl Clone for JournalPaths
impl Clone for JournalPaths
Source§fn clone(&self) -> JournalPaths
fn clone(&self) -> JournalPaths
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more