ipldpinner

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: MIT, Apache-2.0, MIT Imports: 19 Imported by: 0

Documentation

Overview

Package ipldpinner implements structures and methods to keep track of which objects a user wants to keep stored locally. This implementation stores pin information in a mdag structure.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotPinned = fmt.Errorf("not pinned or pinned indirectly")

ErrNotPinned is returned when trying to unpin items which are not pinned.

Functions

func LoadKeys added in v1.7.1

func LoadKeys(ctx context.Context, dstore ds.Datastore, dserv, internal ipld.DAGService, recursive bool, keyChan chan<- cid.Cid) error

LoadKeys reads the pinned CIDs and sends them on the given channel. This is used to read pins without loading them all into memory.

func New

func New(dstore ds.Datastore, dserv, internal ipld.DAGService) (*pinner, error)

New creates a new pinner using the given datastore as a backend, and loads the pinner's keysets from the datastore

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL