Documentation ¶
Index ¶
- Variables
- func ResolveDirectoryTree(currentID uint64, dirCache map[uint64]*DirectoryData, ...) (*format.Link, error)
- func UnmarshallToBlocks(data []byte) (cid.Cid, []blocks.Block, error)
- type DirectoryData
- type DummyNode
- func (f DummyNode) Cid() cid.Cid
- func (f DummyNode) Copy() ipld.Node
- func (f DummyNode) Links() []*ipld.Link
- func (f DummyNode) Loggable() map[string]interface{}
- func (f DummyNode) RawData() []byte
- func (f DummyNode) Resolve(path []string) (interface{}, []string, error)
- func (f DummyNode) ResolveLink(path []string) (*ipld.Link, []string, error)
- func (f DummyNode) Size() (uint64, error)
- func (f DummyNode) Stat() (*ipld.NodeStat, error)
- func (f DummyNode) String() string
- func (f DummyNode) Tree(path string, depth int) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyNode error = errors.New("fake fs Node")
Functions ¶
func ResolveDirectoryTree ¶ added in v0.1.0
Types ¶
type DirectoryData ¶ added in v0.1.0
type DirectoryData struct { Directory model.Directory Node format.Node // contains filtered or unexported fields }
func NewDirectoryData ¶ added in v0.1.0
func NewDirectoryData() DirectoryData
func (*DirectoryData) AddItem ¶ added in v0.1.0
func (d *DirectoryData) AddItem(name string, c cid.Cid, length uint64) error
func (*DirectoryData) AddItemFromLinks ¶ added in v0.1.0
func (d *DirectoryData) AddItemFromLinks(name string, links []format.Link) (cid.Cid, error)
func (*DirectoryData) MarshalBinary ¶ added in v0.1.0
func (d *DirectoryData) MarshalBinary() ([]byte, error)
func (*DirectoryData) UnmarshallBinary ¶ added in v0.1.0
func (d *DirectoryData) UnmarshallBinary(data []byte) error
type DummyNode ¶
type DummyNode struct {
// contains filtered or unexported fields
}
func NewDummyNode ¶
func (DummyNode) ResolveLink ¶
Click to show internal directories.
Click to hide internal directories.