Documentation ¶
Index ¶
- type Dirs
- type GoPathFs
- func (gpf *GoPathFs) Access(name string, mode uint32, context *fuse.Context) (code fuse.Status)
- func (gpf *GoPathFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
- func (gpf *GoPathFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (gpf *GoPathFs) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status
- func (gpf *GoPathFs) OnMount(nodeFs *pathfs.PathNodeFs)
- func (gpf *GoPathFs) OnUnmount()
- func (gpf *GoPathFs) Open(name string, flags uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
- func (gpf *GoPathFs) OpenDir(name string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
- func (gpf *GoPathFs) Rename(oldName string, newName string, context *fuse.Context) (code fuse.Status)
- func (gpf *GoPathFs) Rmdir(name string, context *fuse.Context) fuse.Status
- func (gpf *GoPathFs) Unlink(name string, context *fuse.Context) (code fuse.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dirs ¶
type Dirs struct { Workspace string GobzlConf string GobzlPid string BinDir string PkgDir string SrcDir string GoSDKDir string }
Dirs contains directory paths for GoPathFs.
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(debug bool, cfg *conf.GobazelConf, dirs *Dirs) *GoPathFs
NewGoPathFs returns a new GoPathFs.
func (*GoPathFs) Create ¶
func (gpf *GoPathFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
Create overwrites the parent's Create method.
func (*GoPathFs) OnMount ¶
func (gpf *GoPathFs) OnMount(nodeFs *pathfs.PathNodeFs)
OnMount overwrites 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(name string, flags uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
Open overwrites the parent's Open method.
func (*GoPathFs) Rename ¶
func (gpf *GoPathFs) Rename(oldName string, newName string, context *fuse.Context) (code fuse.Status)
Rename overwrites the parent's Rename method.
Click to show internal directories.
Click to hide internal directories.