Documentation ¶
Index ¶
- func Mount(ctx context.Context, mountPoint string, db db.DB, queries []types.NamedQuery) (*fuse.Server, error)
- func NewDirINode(ctx context.Context, n DirNode) (fs.InodeEmbedder, error)
- func NewRoot(ctx context.Context, db db.DB, queries []types.NamedQuery) (fs.InodeEmbedder, error)
- type DirINode
- type DirNode
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirINode ¶
Types ¶
type DirNode ¶
DirNode is our interface for a directory.
Note that DirNode is not a Node because we only need to be a node for children of DirNode, but at the very top level our root node is not a child of any other DirNode but rather just mounted directly into the existing file system.
type Node ¶
type Node interface { Name() string Mode() uint32 INode(context.Context) (fs.InodeEmbedder, error) }
Node is our interface for a file/directory within our virtual file system. Note that Node is NOT an INode but can rather get an INode, this is to make it so we can represent children of a directory without needing to actually create their INodes yet.
Click to show internal directories.
Click to hide internal directories.