Documentation ¶
Index ¶
- type ReverseFS
- func (rfs *ReverseFS) Access(relPath string, mode uint32, context *fuse.Context) fuse.Status
- func (rfs *ReverseFS) DecryptPath(cipherPath string) (string, error)
- func (rfs *ReverseFS) EncryptPath(plainPath string) (string, error)
- func (rfs *ReverseFS) GetAttr(relPath string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (rfs *ReverseFS) Open(relPath string, flags uint32, context *fuse.Context) (fuseFile nodefs.File, status fuse.Status)
- func (rfs *ReverseFS) OpenDir(cipherPath string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
- func (rfs *ReverseFS) Readlink(relPath string, context *fuse.Context) (string, fuse.Status)
- func (rfs *ReverseFS) StatFs(relPath string) *fuse.StatfsOut
Constants ¶
This section is empty.
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, c *contentenc.ContentEnc, n *nametransform.NameTransform) *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) DecryptPath ¶ added in v1.2.1
DecryptPath implements ctlsock.Backend
func (*ReverseFS) EncryptPath ¶ added in v1.2.1
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
GetAttr - FUSE call "relPath" is the relative ciphertext path
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
Click to show internal directories.
Click to hide internal directories.