unixfs

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)

Functions

func Build

func Build(ctx context.Context, reader io.Reader, into bstore.Blockstore, filestore bool) (cid.Cid, error)

Build builds a UnixFS DAG out of the supplied reader, and imports the DAG into the supplied service.

func CidBuilder

func CidBuilder() (cid.Builder, error)

func CreateFilestore

func CreateFilestore(ctx context.Context, srcPath string, dstPath string) (cid.Cid, error)

CreateFilestore takes a standard file whose path is src, forms a UnixFS DAG, and writes a CARv2 file with positional mapping (backed by the go-filestore library).

Types

This section is empty.

Jump to

Keyboard shortcuts

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