Skip to main content

Module fetch

Module fetch 

Source

Structs§

FetchError

Functions§

ensure_registry
Ensure at least one registry is available.
fetch_all_registries
Fetch registries for all configured sources.
fetch_doc
Fetch a single doc. Source must have name + (url or path).
fetch_doc_full
Fetch all files in an entry directory. Returns vec of (filename, content).
fetch_full_bundle
Download full bundle for a remote source.
fetch_remote_registry
Fetch registry for a single remote source.
verify_content_hash
Verify fetched content against an expected SHA-256 hash. Returns Ok(content) if hash matches or no hash was provided. Returns Err if hash mismatch (content tampering detected).