Documentation ¶
Index ¶
- func Init(ctx *cli.Context)
- type GoPathFs
- func (gpf *GoPathFs) Access(name string, mode uint32, context *fuse.Context) fuse.Status
- func (gpf *GoPathFs) Create(virtual string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, st fuse.Status)
- func (gpf *GoPathFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (gpf *GoPathFs) Mkdir(virtual string, mode uint32, context *fuse.Context) fuse.Status
- func (gpf *GoPathFs) OnMount(nodeFs *pathfs.PathNodeFs)
- func (gpf *GoPathFs) OnUnmount()
- func (gpf *GoPathFs) Open(virtual string, flags uint32, context *fuse.Context) (file nodefs.File, st fuse.Status)
- func (gpf *GoPathFs) OpenDir(virtual string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
- func (gpf *GoPathFs) Rename(oldVirtual string, newVirtual string, context *fuse.Context) (st fuse.Status)
- func (gpf *GoPathFs) Rmdir(virtual string, context *fuse.Context) fuse.Status
- func (gpf *GoPathFs) Unlink(virtual string, context *fuse.Context) (st fuse.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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) 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) Rename ¶
func (gpf *GoPathFs) Rename(oldVirtual string, newVirtual string, context *fuse.Context) (st fuse.Status)
Rename overrides the parent's Rename method.
Click to show internal directories.
Click to hide internal directories.