Skip to main content

Module fetch

Module fetch 

Source
Expand description

Fetching components into the store: OCI / HTTP / local. Network I/O is isolated in thin wrappers; store-assembly logic is offline-testable.

Enums§

UpdateOutcome
Result of an update.

Functions§

assemble_oci
Offline OCI assembly: parse manifest_bytes, collect config + every layer blob via get_blob (keyed by hex digest), store verbatim. manifest_digest is the upstream digest (sha256:...).
ensure
Read-through resolve: return the wasm blob path for reference, pulling it into the store first if absent.
fetch_http
Download a .wasm from url and store it. Network wrapper.
fetch_oci
Pull an OCI component (manifest + blobs) and store it verbatim.
install_local
Install a component from a local file path as a pinned local snapshot (synthesized manifest). Records the source ref as file://<absolute path>.
pull
Fetch reference into the store regardless of kind. Local files are installed as pinned snapshots.
store_http_bytes
Assemble HTTP provenance from already-downloaded bytes + optional caching headers and store via a synthesized manifest. Offline — no network.
store_referrer
Offline: store one referrer’s manifest + blobs against subject_digest.
update
Re-resolve reference and re-pull if the digest moved.