Imports LEI cache snapshots from local directories or OCI artifacts.
Supports two import modes:
- Local directory import (from a previously exported or pulled cache)
- OCI pull + import (pulls from registry, then imports)
Summary
Functions
Imports a cache snapshot from a local directory.
Pulls a cache artifact from an OCI registry and saves to target_dir.
Functions
Imports a cache snapshot from a local directory.
Reads manifest.json and cache.jsonl.gz from the given directory.
Returns {:ok, manifest, reports} where manifest is the cache metadata
and reports is a list of decoded analysis report maps.
Pulls a cache artifact from an OCI registry and saves to target_dir.
Parses the OCI reference, pulls the manifest and blobs, and writes cache files to the target directory.
Returns {:ok, target_dir} or {:error, reason}.