Skip to main content

Module import

Module import 

Source
Expand description

Shared fetch+decrypt pipeline for importing published commits from IPFS.

Used by both fork (creates new repo) and pull-request (creates branch in existing repo). Consolidates the fetch commit → fetch metadata → fetch shards pipeline into a single reusable function.

Structs§

ForeignCommit
Result of fetching and decrypting a published commit.
ImportOptions
Options for importing a published commit from IPFS.

Functions§

fetch_published_commit
Fetch a published commit from IPFS, decrypt it with a content key, and store all objects (commit, metadata, manifest, shards) in the local store.
objects_store
Create an FsStore from a void directory’s objects path.