Documentation ¶
Index ¶
- Constants
- type Unixfs
- func (fs *Unixfs) Find(fpath string) (ipld.Node, error)
- func (fs *Unixfs) Module() (*Unixfs, error)
- func (fs *Unixfs) Node() (ipld.Node, error)
- func (fs *Unixfs) Read(fpath string) (io.ReadCloser, error)
- func (fs *Unixfs) Remove(fpath string) error
- func (fs *Unixfs) Walk(fpath string, cb WalkFun) error
- func (fs *Unixfs) Write(fpath string, r io.Reader) error
- type WalkFun
Constants ¶
View Source
const ( ObjectsPath = "objects" RefsPath = "refs" InfoPath = "info" PackPath = "pack" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Unixfs ¶
type Unixfs struct {
// contains filtered or unexported fields
}
Unixfs is used to read and write to a unixfs directory.
func (*Unixfs) Read ¶
func (fs *Unixfs) Read(fpath string) (io.ReadCloser, error)
Read returns a reader for the file at the given path.
Click to show internal directories.
Click to hide internal directories.