Documentation ¶
Index ¶
- Constants
- func ComputeNodes(items [][]byte) ([]byte, []node.Node)
- func TreeLeavesJSONInputParser(r io.Reader, _mhType uint64, _mhLen int) ([]node.Node, error)
- func TreeNodeParser(block blocks.Block) (node.Node, error)
- type InnerNode
- func (i InnerNode) Cid() cid.Cid
- func (i InnerNode) Copy() node.Node
- func (i InnerNode) Links() []*node.Link
- func (i InnerNode) Loggable() map[string]interface{}
- func (i InnerNode) RawData() []byte
- func (i InnerNode) Resolve(path []string) (interface{}, []string, error)
- func (i InnerNode) ResolveLink(path []string) (*node.Link, []string, error)
- func (i InnerNode) Size() (uint64, error)
- func (i InnerNode) Stat() (*node.NodeStat, error)
- func (i InnerNode) String() string
- func (i InnerNode) Tree(path string, depth int) []string
- type JsonLeaves
- type LeafNode
- func (l LeafNode) Cid() cid.Cid
- func (l LeafNode) Copy() node.Node
- func (l LeafNode) Links() []*node.Link
- func (l LeafNode) Loggable() map[string]interface{}
- func (l LeafNode) RawData() []byte
- func (l LeafNode) Resolve(path []string) (interface{}, []string, error)
- func (l LeafNode) ResolveLink(path []string) (*node.Link, []string, error)
- func (l LeafNode) Size() (uint64, error)
- func (l LeafNode) Stat() (*node.NodeStat, error)
- func (l LeafNode) String() string
- func (l LeafNode) Tree(path string, depth int) []string
- type Share
- type TreePlugin
- func (t TreePlugin) Init(env *plugin.Environment) error
- func (t TreePlugin) Name() string
- func (t TreePlugin) RegisterBlockDecoders(dec node.BlockDecoder) error
- func (t TreePlugin) RegisterInputEncParsers(iec coredag.InputEncParsers) error
- func (t TreePlugin) Start(api coreiface.CoreAPI) error
- func (t TreePlugin) Version() string
Constants ¶
View Source
const Tree = 0x87
0x87 seems to be free: https://github.com/multiformats/multicodec/blob/master/table.csv
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InnerNode ¶
type InnerNode struct {
// contains filtered or unexported fields
}
func (InnerNode) ResolveLink ¶
type JsonLeaves ¶
type JsonLeaves struct {
Leaves []Share
}
type LeafNode ¶
func (LeafNode) ResolveLink ¶
type TreePlugin ¶
type TreePlugin struct{}
func (TreePlugin) Init ¶
func (t TreePlugin) Init(env *plugin.Environment) error
func (TreePlugin) Name ¶
func (t TreePlugin) Name() string
func (TreePlugin) RegisterBlockDecoders ¶
func (t TreePlugin) RegisterBlockDecoders(dec node.BlockDecoder) error
func (TreePlugin) RegisterInputEncParsers ¶
func (t TreePlugin) RegisterInputEncParsers(iec coredag.InputEncParsers) error
func (TreePlugin) Version ¶
func (t TreePlugin) Version() string
Click to show internal directories.
Click to hide internal directories.