Skip to main content

Module history

Module history 

Source
Expand description

Append-only action history for podbox containers.

Recorded at the success points of the lifecycle commands so podbox history can answer “what did I do to <name>, and when?”. Writes are best-effort: recording must never break the command that triggered it, so callers discard the record error. The log lives in the XDG state dir at ~/.local/state/podbox/history.log.

Line format (one event per line, tab-separated): TIMESTAMP\tNAME\tACTION\tDETAIL

Structs§

HistoryEntry
A single recorded action.

Functions§

load
Load the history, most recent first. A missing/unreadable log yields an empty vec with a read error (callers treat that as “nothing to show”).
log_path
Path to the history log: <state>/podbox/history.log.
record
Record an action by appending to the log (best-effort).