selectorutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnixfsPathToSelector

func UnixfsPathToSelector(path string, full bool) (ipld.Node, error)

PathToSelector converts a standard IPLD path to a selector that explores the whole UnixFS path (inclusive), and if 'full' is true, the complete DAG at its termination, or if not true, only the UnixFS node at its termination (which may be an entire sharded directory or file).

Path is optional, but if supplied it must start with a '/'.

This selector does _not_ match, only explore, so it's useful for traversals where block loads are important, not where the matcher visitor callback is important.

Types

This section is empty.

Jump to

Keyboard shortcuts

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