gopathfs

package
v0.0.0-...-7aa44a9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

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) Access

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

Access overwrites the parent's Access method.

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) GetAttr

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

GetAttr overwrites the parent's GetAttr method.

func (*GoPathFs) Mkdir

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

Mkdir overwrites the parent's Mkdir 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) OpenDir

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

OpenDir overwrites the parent's OpenDir 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.

func (*GoPathFs) Rmdir

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

Rmdir overwrites the parent's Rmdir method.

func (gpf *GoPathFs) Unlink(name string, context *fuse.Context) (code fuse.Status)

Unlink overwrites the parent's Unlink method.

Jump to

Keyboard shortcuts

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