Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColoredSet ¶
func ColoredSet(pn pin.Pinner, ds dag.DAGService) (key.KeySet, error)
func Descendants ¶
func Descendants(ds dag.DAGService, set key.KeySet, roots []key.Key) error
func GC ¶
func GC(ctx context.Context, bs bstore.GCBlockstore, pn pin.Pinner) (<-chan key.Key, 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) - 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.