util

package
v0.0.0-...-05a1ede Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const LeftLinks = "Links/0/Hash"

Variables

This section is empty.

Functions

func CheckIfLinkSelector

func CheckIfLinkSelector(sel ipld.Node) bool

func CheckIfUnixfsSelector

func CheckIfUnixfsSelector(sel ipld.Node) bool

func GenerateDataSelectorSpec

func GenerateDataSelectorSpec(dpsPath string, matchPath bool, optionalSubSel builder.SelectorSpec) (selspec builder.SelectorSpec, err error)

func GenerateLeftSubRangeSelector

func GenerateLeftSubRangeSelector(selPath string, start, end int64) (datamodel.Node, error)

func GenerateSubRangeSelector

func GenerateSubRangeSelector(selPath string, matchPath bool, start, end int64, optionalSubSel builder.SelectorSpec) (datamodel.Node, error)

func GenerateSubRangeSelectorSpec

func GenerateSubRangeSelectorSpec(selPath string, matchPath bool, start, end int64, optionalSubSel builder.SelectorSpec) (builder.SelectorSpec, error)

func IsAllSelector

func IsAllSelector(sel ipld.Node) bool

func LoadOrInitPeerKey

func LoadOrInitPeerKey(kf string) (crypto.PrivKey, error)

func RootLeftSelector

func RootLeftSelector(path string) (ipld.Node, error)

func SelectorToJson

func SelectorToJson(sel ipld.Node) string

func UnionPathSelector

func UnionPathSelector(paths []string, isLeft bool) (ipld.Node, error)

func UnionPathSelectorWeb

func UnionPathSelectorWeb(paths []string, isLeft bool) (ipld.Node, error)

func UnixFSPathSelectorNotRecursive

func UnixFSPathSelectorNotRecursive(path string) builder.SelectorSpec

UnixFSPathSelectorNotRecursive creates a selector for a file/path inside of a UnixFS directory not recursive if reification is setup on a link system

func UnixFSPathSelectorSpec

func UnixFSPathSelectorSpec(path string, optionalSubselectorAtTarget builder.SelectorSpec) builder.SelectorSpec

UnixFSPathSelectorSpec creates a selector for a file/path inside of a UnixFS directory if reification is setup on a link system

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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