pathfs_frontend

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(fd *os.File, writeOnly bool, cfs *cryptfs.CryptFS) nodefs.File

Types

type FS

type FS struct {
	*cryptfs.CryptFS
	pathfs.FileSystem // loopbackFileSystem
	// contains filtered or unexported fields
}

func NewFS

func NewFS(key []byte, backing string, useOpenssl bool) *FS

Encrypted FUSE overlay filesystem

func (*FS) Access

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

func (*FS) Chmod

func (fs *FS) Chmod(path string, mode uint32, context *fuse.Context) (code fuse.Status)

func (*FS) Chown

func (fs *FS) Chown(path string, uid uint32, gid uint32, context *fuse.Context) (code fuse.Status)

func (*FS) Create

func (fs *FS) Create(path string, flags uint32, mode uint32, context *fuse.Context) (fuseFile nodefs.File, code fuse.Status)

func (*FS) GetAttr

func (fs *FS) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*FS) GetPath

func (fs *FS) GetPath(relPath string) string

GetPath - get the absolute path of the backing file

func (*FS) GetXAttr

func (fs *FS) GetXAttr(name string, attr string, context *fuse.Context) ([]byte, fuse.Status)
func (fs *FS) Link(orig string, newName string, context *fuse.Context) (code fuse.Status)

func (*FS) ListXAttr

func (fs *FS) ListXAttr(name string, context *fuse.Context) ([]string, fuse.Status)

func (*FS) Mkdir

func (fs *FS) Mkdir(path string, mode uint32, context *fuse.Context) (code fuse.Status)

func (*FS) Mknod

func (fs *FS) Mknod(name string, mode uint32, dev uint32, context *fuse.Context) (code fuse.Status)

func (*FS) Open

func (fs *FS) Open(name string, flags uint32, context *fuse.Context) (fuseFile nodefs.File, status fuse.Status)

func (*FS) OpenDir

func (fs *FS) OpenDir(dirName string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
func (fs *FS) Readlink(name string, context *fuse.Context) (out string, status fuse.Status)

func (*FS) RemoveXAttr

func (fs *FS) RemoveXAttr(name string, attr string, context *fuse.Context) fuse.Status

func (*FS) Rename

func (fs *FS) Rename(oldPath string, newPath string, context *fuse.Context) (codee fuse.Status)

func (*FS) Rmdir

func (fs *FS) Rmdir(name string, context *fuse.Context) (code fuse.Status)

func (*FS) SetXAttr

func (fs *FS) SetXAttr(name string, attr string, data []byte, flags int, context *fuse.Context) fuse.Status
func (fs *FS) Symlink(pointedTo string, linkName string, context *fuse.Context) (code fuse.Status)

func (*FS) Truncate

func (fs *FS) Truncate(path string, offset uint64, context *fuse.Context) (code fuse.Status)
func (fs *FS) Unlink(name string, context *fuse.Context) (code fuse.Status)

func (*FS) Utimens

func (fs *FS) Utimens(path string, Atime *time.Time, Mtime *time.Time, context *fuse.Context) (code fuse.Status)

Jump to

Keyboard shortcuts

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