Skip to main content

Module store

Module store 

Source
Expand description

The local L0 disk store — the injectable seam this crate’s server logic reads/writes through. Never touched directly by tests; tests use MockLocalCacheStore the same way sui-dockerfile-wrapper’s tests use MockCacheBackend.

Structs§

MockLocalCacheStore
In-memory mock for unit tests. Never touches a filesystem.
RealLocalCacheStore
Real disk-backed implementation. A DaemonSet deployment backs root with a hostPath volume so entries survive pod restarts — see the sui-dockerfile-node-cache-daemon Helm chart values.

Traits§

LocalCacheStore
Abstraction over the node-local content-addressed cache directory. Content hashes are opaque strings (the same content_hash a DockerfileGraph node already carries); this trait does not interpret them beyond using them as a lookup key.

Functions§

ensure_root_exists
Best-effort helper: ensure a root directory exists before serving. Kept as a free function (not folded into RealLocalCacheStore::new) so construction stays infallible and synchronous; callers await this once at daemon startup.