blocks

package
v0.0.0-...-07125f1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlobNodeFromFile

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

func CreateBlobNodeFromReader

func CreateBlobNodeFromReader(reader io.Reader) (ipld.Node, error)

Types

type Tree

type Tree map[string]TreeEntry

type TreeBuilder

type TreeBuilder struct {
	// contains filtered or unexported fields
}

func NewTreeBuilder

func NewTreeBuilder() *TreeBuilder
func (tb *TreeBuilder) AppendLink(name string, node ipld.Node) error

func (*TreeBuilder) Build

func (tb *TreeBuilder) Build() (ipld.Node, error)

type TreeEntry

type TreeEntry struct {
	Mode string
	Hash datamodel.Link
}

Jump to

Keyboard shortcuts

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