readonly

package
v0.0.0-...-dc1a0b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(ipfs *core.IpfsNode, fpath string) error

func Unmount

func Unmount(point string) error

Unmount attempts to unmount the provided FUSE mount point, forcibly if necessary.

Types

type FileSystem

type FileSystem struct {
	Ipfs *core.IpfsNode
}

func NewFileSystem

func NewFileSystem(ipfs *core.IpfsNode) *FileSystem

func (FileSystem) Root

func (f FileSystem) Root() (fs.Node, fuse.Error)

type Node

type Node struct {
	Ipfs *core.IpfsNode
	Nd   *mdag.Node
}

func (*Node) Attr

func (s *Node) Attr() fuse.Attr

func (*Node) Lookup

func (s *Node) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)

func (*Node) ReadAll

func (s *Node) ReadAll(intr fs.Intr) ([]byte, fuse.Error)

func (*Node) ReadDir

func (s *Node) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)

type Root

type Root struct {
	Ipfs *core.IpfsNode
}

func (*Root) Attr

func (*Root) Attr() fuse.Attr

func (*Root) Lookup

func (s *Root) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)

func (*Root) ReadDir

func (*Root) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL