resolve

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoNamesys = errors.New(
	"core/resolve: no Namesys on BtfsNode - can't resolve btns entry")

ErrNoNamesys is an explicit error for when an BTFS node doesn't (yet) have a name system

Functions

func Resolve

func Resolve(ctx context.Context, nsys namesys.NameSystem, r *resolver.Resolver, p path.Path) (format.Node, error)

Resolve resolves the given path by parsing out protocol-specific entries (e.g. /btns/<node-key>) and then going through the /btfs/ entries and returning the final node.

func ResolveIPNS

func ResolveIPNS(ctx context.Context, nsys namesys.NameSystem, p path.Path) (path.Path, error)

ResolveIPNS resolves /btns paths

Types

This section is empty.

Jump to

Keyboard shortcuts

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