Skip to main content

Module store

Module store 

Source
Expand description

Content-addressed store: filesystem-backed XET reconstruction.

This is the read/write core extracted from the cas-serve binary so it can be reused in-process by embedders (e.g. the registry service’s getBlob) without spawning a subprocess or reimplementing reconstruction.

Reconstruction walks the file’s .mdb reconstruction shard, fetches each referenced xorb, and concatenates the segment bytes — the same algorithm the binary serves over its NDJSON GetFile protocol.

Structs§

CasStore
Filesystem-backed content-addressed store.
PutResult
Result of ingesting bytes via CasStore::put_file_bytes.

Enums§

StoreError
Errors from store reconstruction.

Functions§

resolve_storage_path
Storage path resolution order (matches the cas-serve binary):