gopathfs

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx *cli.Context)

Init initialize the gopathfs package.

Types

type GoPathFs

type GoPathFs struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

GoPathFs implements a virtual tree for src folder of GOPATH.

func NewGoPathFs

func NewGoPathFs(cfg *conf.Config, fs vfs.FileSystem, mapper mapping.SourceMapper, changeCallback changeCallbackFunc) *GoPathFs

NewGoPathFs returns a new GoPathFs.

func (*GoPathFs) Access

func (gpf *GoPathFs) Access(name string, mode uint32, context *fuse.Context) fuse.Status

Access overrides the parent's Access method.

func (*GoPathFs) Create

func (gpf *GoPathFs) Create(virtual string, flags uint32, mode uint32,
	context *fuse.Context) (file nodefs.File, st fuse.Status)

Create overrides the parent's Create method.

func (*GoPathFs) GetAttr

func (gpf *GoPathFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

GetAttr overrides the parent's GetAttr method.

func (*GoPathFs) Mkdir

func (gpf *GoPathFs) Mkdir(virtual string, mode uint32, context *fuse.Context) fuse.Status

Mkdir overrides the parent's Mkdir method.

func (*GoPathFs) OnMount

func (gpf *GoPathFs) OnMount(nodeFs *pathfs.PathNodeFs)

OnMount overrides the parent's OnMount method.

func (*GoPathFs) OnUnmount

func (gpf *GoPathFs) OnUnmount()

OnUnmount overwrites the parent's OnUnmount method.

func (*GoPathFs) Open

func (gpf *GoPathFs) Open(virtual string, flags uint32, context *fuse.Context) (file nodefs.File, st fuse.Status)

Open overrides the parent's Open method.

func (*GoPathFs) OpenDir

func (gpf *GoPathFs) OpenDir(virtual string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)

OpenDir overrides the parent's OpenDir method.

func (*GoPathFs) Rename

func (gpf *GoPathFs) Rename(oldVirtual string, newVirtual string, context *fuse.Context) (st fuse.Status)

Rename overrides the parent's Rename method.

func (*GoPathFs) Rmdir

func (gpf *GoPathFs) Rmdir(virtual string, context *fuse.Context) fuse.Status

Rmdir overrides the parent's Rmdir method.

func (gpf *GoPathFs) Unlink(virtual string, context *fuse.Context) (st fuse.Status)

Unlink overrides the parent's Unlink method.

Jump to

Keyboard shortcuts

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