Documentation
¶
Overview ¶
package fuse/readonly implements a fuse filesystem to access files stored inside of ipfs.
Index ¶
- func Mount(ipfs *core.IpfsNode, mountpoint string) (fusemnt.Mount, error)
- type Node
- func (n *Node) Getattr(_ context.Context, _ fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (n *Node) Getxattr(_ context.Context, attr string, dest []byte) (uint32, syscall.Errno)
- func (n *Node) Listxattr(_ context.Context, dest []byte) (uint32, syscall.Errno)
- func (n *Node) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *Node) Open(ctx context.Context, _ uint32) (fs.FileHandle, uint32, syscall.Errno)
- func (n *Node) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
- func (n *Node) Readlink(_ context.Context) ([]byte, syscall.Errno)
- type Root
- func (*Root) Getattr(_ context.Context, _ fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (r *Root) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (*Root) Readdir(_ context.Context) (fs.DirStream, syscall.Errno)
- func (r *Root) Statfs(_ context.Context, out *fuse.StatfsOut) syscall.Errno
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
Node is the core object representing a filesystem tree node.
func (*Node) Open ¶ added in v0.41.0
Open creates a DagReader that is reused across sequential Read calls, avoiding re-traversal of the DAG from the root on each read.
type Root ¶
Root is the root object of the /ipfs filesystem tree.
func (*Root) Readdir ¶ added in v0.41.0
Readdir on the namespace root is not allowed (execute-only).
Click to show internal directories.
Click to hide internal directories.