Documentation ¶
Overview ¶
package fuse/readonly implements a fuse filesystem to access files stored inside of ipfs.
Index ¶
- func Mount(ipfs *core.IpfsNode, mountpoint string) (mount.Mount, error)
- type FileSystem
- type Node
- func (s *Node) Attr(ctx context.Context, a *fuse.Attr) error
- func (s *Node) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error
- func (s *Node) Lookup(ctx context.Context, name string) (fs.Node, error)
- func (s *Node) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
- func (s *Node) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (s *Node) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error)
- type Root
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSystem ¶
FileSystem is the readonly IPFS Fuse Filesystem.
func NewFileSystem ¶
func NewFileSystem(ipfs *core.IpfsNode) *FileSystem
NewFileSystem constructs new fs using given core.IpfsNode instance.
type Node ¶
Node is the core object representing a filesystem tree node.
func (*Node) Getxattr ¶ added in v0.4.11
func (s *Node) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error
func (*Node) Read ¶
func (s *Node) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*Node) ReadDirAll ¶ added in v0.3.2
ReadDirAll reads the link structure as directory entries.
Click to show internal directories.
Click to hide internal directories.