Documentation ¶
Overview ¶
package unixfs/io implements convenience objects for working with the ipfs unixfs data format.
Index ¶
- Variables
- func NewBufDagReader(b []byte) *bufDagReader
- func NewDirectory(dserv mdag.DAGService) *directoryBuilder
- func NewEmptyDirectory() *mdag.ProtoNode
- func NewPBFileReader(ctx context.Context, n *mdag.ProtoNode, pb *ftpb.Data, serv mdag.DAGService) *pbDagReader
- func ResolveUnixfsOnce(ctx context.Context, ds dag.DAGService, nd node.Node, name string) (*node.Link, error)
- type DagReader
- type ReadSeekCloser
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCantReadSymlinks = errors.New("cannot currently read symlinks")
View Source
var ErrIsDir = errors.New("this dag node is a directory")
Functions ¶
func NewBufDagReader ¶ added in v0.4.5
func NewBufDagReader(b []byte) *bufDagReader
func NewDirectory ¶
func NewDirectory(dserv mdag.DAGService) *directoryBuilder
NewDirectory returns a directoryBuilder. It needs a DAGService to add the Children
func NewEmptyDirectory ¶ added in v0.3.4
NewEmptyDirectory returns an empty merkledag Node with a folder Data chunk
func NewPBFileReader ¶ added in v0.4.5
Types ¶
type DagReader ¶
type DagReader interface { ReadSeekCloser Size() uint64 CtxReadFull(context.Context, []byte) (int, error) Offset() int64 }
func NewDagReader ¶
NewDagReader creates a new reader object that reads the data represented by the given node, using the passed in DAGService for data retreival
Click to show internal directories.
Click to hide internal directories.