package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Feb 27, 2015
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
package fuse/readonly implements a fuse filesystem to access files
stored inside of ipfs.
func Mount(ipfs *core.IpfsNode, mountpoint string) (mount.Mount, error)
Mount mounts ipfs at a given location, and returns a mount.Mount instance.
type FileSystem struct {
Ipfs *core.IpfsNode
}
FileSystem is the readonly Ipfs Fuse Filesystem.
func NewFileSystem(ipfs *core.IpfsNode) *FileSystem
NewFileSystem constructs new fs using given core.IpfsNode instance.
func (f FileSystem) Root() (fs.Node, fuse.Error)
Root constructs the Root of the filesystem, a Root object.
type Node struct {
Ipfs *core.IpfsNode
Nd *mdag.Node
}
Node is the core object representing a filesystem tree node.
func (s *Node) Attr() fuse.Attr
Attr returns the attributes of a given node.
func (s *Node) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)
Lookup performs a lookup under this node.
func (s *Node) Read(req *fuse.ReadRequest, resp *fuse.ReadResponse, intr fs.Intr) fuse.Error
func (s *Node) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)
ReadDir reads the link structure as directory entries
type Root struct {
Ipfs *core.IpfsNode
}
Root is the root object of the filesystem tree.
func (*Root) Attr() fuse.Attr
Attr returns file attributes.
func (s *Root) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)
Lookup performs a lookup under this node.
func (*Root) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)
ReadDir reads a particular directory. Disallowed for root.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.