Documentation ¶
Overview ¶
Package corerepo provides pinning and garbage collection for local IPFS block services.
IPFS nodes will keep local copies of any object that have either been added or requested locally. Not all of these objects are worth preserving forever though, so the node adminstrator can pin objects they want to keep and unpin objects that they don't care about.
Garbage collection sweeps iterate through the local block store removing objects that aren't pinned, which frees storage space for new objects.
Index ¶
- func GarbageCollect(n *core.IpfsNode, ctx context.Context) error
- func GarbageCollectAsync(n *core.IpfsNode, ctx context.Context) (<-chan *KeyRemoved, error)
- func Pin(n *core.IpfsNode, ctx context.Context, paths []string, recursive bool) ([]key.Key, error)
- func Unpin(n *core.IpfsNode, ctx context.Context, paths []string, recursive bool) ([]key.Key, error)
- type KeyRemoved
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GarbageCollectAsync ¶
Types ¶
type KeyRemoved ¶
Click to show internal directories.
Click to hide internal directories.