Skip to main content

Module version_store

Module version_store 

Source
Expand description

Hybrid point-in-time version store with JSON manifest and browsable trees. Hybrid point-in-time + per-file version store with JSON manifest. Wraps the core versioning engine to provide human-readable naming, dirvish-style browsable tree snapshots, and machine-readable indexes.

Structs§

ArchiveEntry
A single entry from an inspected archive listing.
ArchiveExportStats
Statistics from an archive export operation.
ImportStats
Statistics from an archive import operation.
PruneStats
Statistics returned from snapshot pruning operations.
RetentionPolicy
Expiration and policy rules for snapshot retention.
SnapshotEntry
Metadata for a single point-in-time snapshot entry.
SnapshotIndex
JSON-serializable snapshot index with schema version and snapshot list.
SnapshotStoreStats
Aggregate storage statistics across all snapshots.
SnapshotSummary
VersionStore
Manages point-in-time snapshots with browsable tree directories and JSON manifest.

Functions§

compute_disk_usage
Compute apparent size (st_size) and actual disk usage (st_blocks * 512) for a directory tree. Returns (apparent_bytes, disk_bytes).
compute_store_stats
Compute aggregate storage statistics across all snapshots. If store_root is provided, computes BLAKE3 content dedup across all snapshot files.
print_snapshot_table
Print snapshots as a formatted table with CoW storage stats.
print_store_stats
Print detailed storage stats.
wrap_import_decompressor
Wraps a reader with the appropriate decompressor based on the compression format string.