Documentation
¶
Index ¶
- func BlockDecoder(block goblocks.Block) (node.Node, error)
- type Block
- func (b *Block) Cid() cid.Cid
- func (*Block) Copy() node.Node
- func (*Block) Links() []*node.Link
- func (*Block) Loggable() map[string]interface{}
- func (b *Block) RawData() []byte
- func (*Block) Resolve(path []string) (interface{}, []string, error)
- func (*Block) ResolveLink(path []string) (*node.Link, []string, error)
- func (*Block) Size() (uint64, error)
- func (*Block) Stat() (*node.NodeStat, error)
- func (*Block) String() string
- func (*Block) Tree(path string, depth int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Version int `json:"version"` ID string `json:"id"` Owner string `json:"owner"` Edition int `json:"edition"` Hash string `json:"hash"` // contains filtered or unexported fields }
Block (iscn-block, codec 0x0264), represents an ISCN block header
func NewISCNBlock ¶
NewISCNBlock creates a iscn-block IPLD object
func (*Block) Links ¶
Links is a helper function that returns all links within this object HINT: Use `ipfs refs <cid>`
func (*Block) Resolve ¶
Resolve resolves a path through this node, stopping at any link boundary and returning the object found as well as the remaining path to traverse
func (*Block) ResolveLink ¶
ResolveLink is a helper function that allows easier traversal of links through blocks
Click to show internal directories.
Click to hide internal directories.