Module repo

Source
Expand description

Storage implementation(s) backing the crate::Ipfs.

Modules§

blockstore
datastore
lock
Persistent fs backed repo.

Structs§

GCConfig
GCGuard
Repo
Describes a repo. Consolidates a blockstore, a datastore and a subscription registry.
RepoFetch
RepoGetBlock
RepoGetBlocks
RepoInsertPin
RepoPutBlock
RepoRemovePin

Enums§

BlockPut
Describes the outcome of BlockStore::put_block.
BlockRm
Describes the outcome of BlockStore::remove.
BlockRmError
Describes the error variants for BlockStore::remove.
GCTrigger
LockError
Errors variants describing the possible failures for Lock::try_exclusive.
PinKind
PinKind is more specific pin description for writing purposes. Implements PartialEq<&PinMode>. Generic over Borrow<Cid> to allow storing both reference and owned value of Cid.
PinMode
PinMode is the description of pin type for quering purposes.
RepoEvent
Events used to communicate to the swarm on repo changes.

Traits§

BlockStore
This API is being discussed and evolved, which will likely lead to breakage.
DataStore
Generic layer of abstraction for a key-value data store.
Lock
A trait for describing repository locking.
PinStore