ingest

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

ingest scans a directory tree and stores every regular file as an artifact, with its relative path attached as fsmeta so the projection View renders it under by-path/.

Demonstrates:

  • Scrinium.Init for first-run, scrinium.Open for subsequent runs against the same store.
  • filepath.WalkDir for batch traversal.
  • Attaching fsmeta metadata so artifacts have a virtual path.
  • SessionID + RollbackSession idiom for atomic-ish batches: a failure mid-ingest leaves a known set of artifacts to roll back, not orphans scattered across timestamps.

Usage:

go run ./ingest --src=/path/to/files --store=/tmp/my-store [--namespace=foo]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL