package
0.0.0-20190101045657-ce948763b909
Repository: https://github.com/ether1project/go-ipfs.git
Documentation: pkg.go.dev
# Packages
Package gc provides garbage collection for go-ipfs.
# Functions
LoadPinner loads a pinner and its keysets from the given datastore.
ModeToString returns a human-readable name for the Mode.
NewPinner creates a new pinner using the given datastore as a backend.
StringToMode parses the result of ModeToString() back to a Mode.
# Constants
Any refers to any pinned cid.
Direct pins pin just the target cid.
Indirect pins are cids who have some ancestor pinned recursively.
Internal pins are cids used to keep the internal state of the pinner.
NotPinned.
Recursive pins pin the target cids along with any reachable children.
# Variables
ErrNotPinned is returned when trying to unpin items which are not pinned.
# Interfaces
A Pinner provides the necessary methods to keep track of Nodes which are to be kept locally, according to a pin mode.
# Type aliases
Mode allows to specify different types of pin (recursive, direct etc.).