Documentation ¶
Index ¶
- func ColoredSet(ctx context.Context, pn pin.Pinner, ls dag.LinkService, ...) (*cid.Set, error)
- func Descendants(ctx context.Context, ls dag.LinkService, set *cid.Set, roots []*cid.Cid, ...) error
- func GC(ctx context.Context, bs bstore.GCBlockstore, ls dag.LinkService, pn pin.Pinner, ...) (<-chan *cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColoredSet ¶
func Descendants ¶
func GC ¶
func GC(ctx context.Context, bs bstore.GCBlockstore, ls dag.LinkService, pn pin.Pinner, bestEffortRoots []*cid.Cid) (<-chan *cid.Cid, error)
GC performs a mark and sweep garbage collection of the blocks in the blockstore first, it creates a 'marked' set and adds to it the following: - all recursively pinned blocks, plus all of their descendants (recursively) - bestEffortRoots, plus all of its descendants (recursively) - all directly pinned blocks - all blocks utilized internally by the pinner
The routine then iterates over every block in the blockstore and deletes any block that is not found in the marked set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.