pathfs_frontend

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const FALLOC_FL_KEEP_SIZE = 0x01

Variables

This section is empty.

Functions

func NewFile

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

Types

type Args added in v0.5.1

type Args struct {
	Masterkey      []byte
	Cipherdir      string
	OpenSSL        bool
	PlaintextNames bool
	DirIV          bool
	EMENames       bool
	GCMIV128       bool
}

Container for arguments that are passed from main() to pathfs_frontend

type FS

type FS struct {
	*cryptfs.CryptFS
	pathfs.FileSystem // loopbackFileSystem, see go-fuse/fuse/pathfs/loopback.go
	// contains filtered or unexported fields
}

func NewFS

func NewFS(args Args) *FS

Encrypted FUSE overlay filesystem

func (*FS) Access

func (fs *FS) Access(path 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) GetXAttr

func (fs *FS) GetXAttr(name string, attr string, context *fuse.Context) ([]byte, fuse.Status)
func (fs *FS) Link(oldPath string, newPath 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(relPath string, mode uint32, context *fuse.Context) (code fuse.Status)

func (*FS) Mknod

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

func (*FS) Open

func (fs *FS) Open(path 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(path 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) (code 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(target 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(path 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