Documentation ¶
Index ¶
- type File
- type Node
- func (n *Node) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) (errno syscall.Errno)
- func (n *Node) Lookup(ctx context.Context, cName string, out *fuse.EntryOut) (ch *fs.Inode, errno syscall.Errno)
- func (n *Node) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *Node) Path() string
- func (n *Node) Readdir(ctx context.Context) (stream fs.DirStream, errno syscall.Errno)
- func (n *Node) Readlink(ctx context.Context) (out []byte, errno syscall.Errno)
- func (n *Node) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno
- type RootNode
- type VirtualConfFile
- type VirtualConfNode
- type VirtualMemNode
- func (f *VirtualMemNode) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (f *VirtualMemNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (f *VirtualMemNode) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
type Node ¶
Node is a file or directory in the filesystem tree in a `gocryptfs -reverse` mount.
func (*Node) Getattr ¶
func (n *Node) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) (errno syscall.Errno)
GetAttr - FUSE call for stat()ing a file.
GetAttr is symlink-safe through use of openBackingDir() and Fstatat().
func (*Node) Lookup ¶
func (n *Node) Lookup(ctx context.Context, cName string, out *fuse.EntryOut) (ch *fs.Inode, errno syscall.Errno)
Lookup - FUSE call for discovering a file.
func (*Node) Open ¶
func (n *Node) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
Open - FUSE call. Open already-existing file.
Symlink-safe through Openat().
func (*Node) Readdir ¶
Readdir - FUSE call.
This function is symlink-safe through use of openBackingDir() and ReadDirIVAt().
type RootNode ¶
type RootNode struct { Node // contains filtered or unexported fields }
RootNode is the root directory in a `gocryptfs -reverse` mount
func NewRootNode ¶
func NewRootNode(args fusefrontend.Args, c *contentenc.ContentEnc, n *nametransform.NameTransform) *RootNode
NewRootNode returns an encrypted FUSE overlay filesystem. In this case (reverse mode) the backing directory is plain-text and ReverseFS provides an encrypted view.
func (*RootNode) DecryptPath ¶
DecryptPath implements ctlsock.Backend
type VirtualConfFile ¶
type VirtualConfFile struct {
// contains filtered or unexported fields
}
type VirtualConfNode ¶
type VirtualMemNode ¶
VirtualMemNode is an in-memory node that does not have a representation on disk.
func (*VirtualMemNode) Getattr ¶
func (f *VirtualMemNode) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) syscall.Errno
GetAttr - FUSE call
func (*VirtualMemNode) Open ¶
func (f *VirtualMemNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
Open - FUSE call
func (*VirtualMemNode) Read ¶
func (f *VirtualMemNode) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
Read - FUSE call