fusefrontend_reverse

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DirIVMode is the mode to use for Dir IV files.
	DirIVMode = syscall.S_IFREG | 0400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseFS added in v1.2.1

type ReverseFS struct {
	// Embed pathfs.defaultFileSystem for a ENOSYS implementation of all methods
	pathfs.FileSystem
	// contains filtered or unexported fields
}

ReverseFS implements the pathfs.FileSystem interface and provides an encrypted view of a plaintext directory.

func NewFS

func NewFS(args fusefrontend.Args) *ReverseFS

NewFS returns an encrypted FUSE overlay filesystem. In this case (reverse mode) the backing directory is plain-text and ReverseFS provides an encrypted view.

func (*ReverseFS) Access added in v1.2.1

func (rfs *ReverseFS) Access(relPath string, mode uint32, context *fuse.Context) fuse.Status

Access - FUSE call

func (*ReverseFS) DecryptPath added in v1.2.1

func (rfs *ReverseFS) DecryptPath(cipherPath string) (string, error)

DecryptPath implements ctlsock.Backend

func (*ReverseFS) EncryptPath added in v1.2.1

func (rfs *ReverseFS) EncryptPath(plainPath string) (string, error)

EncryptPath implements ctlsock.Backend. This is actually not used inside reverse mode, but we implement it because third-party tools want to encrypt paths through the control socket.

func (*ReverseFS) GetAttr added in v1.2.1

func (rfs *ReverseFS) GetAttr(relPath string, context *fuse.Context) (*fuse.Attr, fuse.Status)

GetAttr - FUSE call

func (*ReverseFS) Open added in v1.2.1

func (rfs *ReverseFS) Open(relPath string, flags uint32, context *fuse.Context) (fuseFile nodefs.File, status fuse.Status)

Open - FUSE call

func (*ReverseFS) OpenDir added in v1.2.1

func (rfs *ReverseFS) OpenDir(cipherPath string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)

OpenDir - FUSE readdir call

func (rfs *ReverseFS) Readlink(cipherPath string, context *fuse.Context) (string, fuse.Status)

Readlink - FUSE call

func (*ReverseFS) StatFs added in v1.2.1

func (rfs *ReverseFS) StatFs(name string) *fuse.StatfsOut

StatFs - FUSE call

Jump to

Keyboard shortcuts

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