MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / journal_sink

Function journal_sink

atomic-cli/src/commands/agent/lifecycle.rs:997–1004  ·  view source on GitHub ↗

The journal sink for lifecycle transitions: the daemon's RPC sink (D4 start-or-retry — the daemon is the only repository journal writer).

(dot_dir: &Path)

Source from the content-addressed store, hash-verified

995/// The journal sink for lifecycle transitions: the daemon's RPC sink
996/// (D4 start-or-retry — the daemon is the only repository journal writer).
997fn journal_sink(dot_dir: &Path) -> CliResult<Arc<dyn ProvenanceJournalSink>> {
998 let root = dot_dir.parent().ok_or_else(|| {
999 CliError::Internal(anyhow!(
1000 "canonical .atomic directory has no repository parent"
1001 ))
1002 })?;
1003 Ok(super::provenance_rpc::sink_for(root))
1004}
1005
1006fn map_stop_cause(cause: JournalStopCauseWire) -> JournalStopCause {
1007 match cause {

Callers 4

stop_lifecycle_turnsFunction · 0.85
resume_lifecycle_turnsFunction · 0.85
abandon_lifecycle_turnsFunction · 0.85

Calls 2

sink_forFunction · 0.85
parentMethod · 0.80

Tested by

no test coverage detected