go-ipfs: github.com/ipfs/go-ipfs/fuse/readonly Index | Files

package readonly

import "github.com/ipfs/go-ipfs/fuse/readonly"

package fuse/readonly implements a fuse filesystem to access files stored inside of ipfs.

Index

Package Files

doc.go mount_unix.go readonly_unix.go

func Mount Uses

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 Uses

type FileSystem struct {
    Ipfs *core.IpfsNode
}

FileSystem is the readonly IPFS Fuse Filesystem.

func NewFileSystem Uses

func NewFileSystem(ipfs *core.IpfsNode) *FileSystem

NewFileSystem constructs new fs using given core.IpfsNode instance.

func (FileSystem) Root Uses

func (f FileSystem) Root() (fs.Node, error)

Root constructs the Root of the filesystem, a Root object.

type Node Uses

type Node struct {
    Ipfs *core.IpfsNode
    Nd   ipld.Node
    // contains filtered or unexported fields
}

Node is the core object representing a filesystem tree node.

func (*Node) Attr Uses

func (s *Node) Attr(ctx context.Context, a *fuse.Attr) error

Attr returns the attributes of a given node.

func (*Node) Getxattr Uses

func (s *Node) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse) error

func (*Node) Lookup Uses

func (s *Node) Lookup(ctx context.Context, name string) (fs.Node, error)

Lookup performs a lookup under this node.

func (*Node) Read Uses

func (s *Node) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error

func (*Node) ReadDirAll Uses

func (s *Node) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

ReadDirAll reads the link structure as directory entries

func (s *Node) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error)

type Root Uses

type Root struct {
    Ipfs *core.IpfsNode
}

Root is the root object of the filesystem tree.

func (*Root) Attr Uses

func (*Root) Attr(ctx context.Context, a *fuse.Attr) error

Attr returns file attributes.

func (*Root) Lookup Uses

func (s *Root) Lookup(ctx context.Context, name string) (fs.Node, error)

Lookup performs a lookup under this node.

func (*Root) ReadDirAll Uses

func (*Root) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

ReadDirAll reads a particular directory. Disallowed for root.

Package readonly imports 16 packages (graph) and is imported by 31 packages. Updated 2019-07-31. Refresh now. Tools for package owners.