fuse

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmount

func Unmount(dir string)

TODO

Types

type Dir

type Dir struct {
	Node
	// contains filtered or unexported fields
}

func (*Dir) Attr

func (d *Dir) Attr(ctx context.Context, a *fuse.Attr) (funcError error)

func (*Dir) Create

func (d *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (result fs.Node, _ fs.Handle, createError error)

func (*Dir) Lookup

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

TODO: invalid directory is also going through

func (*Dir) ReadDirAll

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

type FS

type FS struct {
	Mounter *Mounter
	// contains filtered or unexported fields
}

func (*FS) Root

func (f *FS) Root() (n fs.Node, ret error)

type Mounter

type Mounter struct {
	// Dir is the temporary directory where the filesystem is mounted.
	Dir string

	Conn   *fuse.Conn
	Server *fs.Server

	// Error will receive the return value of Serve.
	Error <-chan error
	// contains filtered or unexported fields
}

func Mounted

func Mounted(dir string, filesys fs.FS, conf *fs.Config, options ...fuse.MountOption) (*Mounter, error)

func (*Mounter) Close

func (mnt *Mounter) Close()

type Node

type Node struct {
	WsFile       ws.File
	RepoName     string
	HeadCommitId string
	Write        bool
}

Jump to

Keyboard shortcuts

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