Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2025 Changes in this version + func SetupDB(ctx context.Context, db *sqlx.DB) error + func TestFS[K comparable](t *testing.T, newScheme func(testing.TB) Scheme[K]) + type DirEntry struct + Child K + Mode uint32 + Name string + type Extent struct + Data []byte + ID K + Start int64 + type FS struct + func New[K comparable](db *sqlx.DB, svc blobcache.Service, vol blobcache.Handle, scheme Scheme[K]) *FS[K] + func (fs *FS[K]) Flush(ctx context.Context) error + func (fs *FS[K]) GetID(ino int64) (K, bool) + func (fs *FS[K]) GetInode(id K) int64 + func (fs *FS[K]) GetOrCreateInode(id K) int64 + func (fs *FS[K]) PutExtent(ctx context.Context, id K, startAt int64, data []byte) error + func (fsx *FS[K]) FUSERoot() *Node[K] + type Node struct + func (n *Node[K]) Create(ctx context.Context, name string, flags uint32, mode uint32, ...) (node *fs.Inode, fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno) + func (n *Node[K]) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno + func (n *Node[K]) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno) + func (n *Node[K]) Read(ctx context.Context, f fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno) + func (n *Node[K]) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) + func (n *Node[K]) Unlink(ctx context.Context, name string) syscall.Errno + func (n *Node[K]) Write(ctx context.Context, f fs.FileHandle, data []byte, off int64) (written uint32, errno syscall.Errno) + type Scheme interface + CreateAt func(ctx context.Context, dst schema.WO, src schema.RO, root []byte, parentID K, ...) (K, []byte, error) + DeleteAt func(ctx context.Context, dst schema.WO, src schema.RO, root []byte, parentID K, ...) ([]byte, error) + FlushExtents func(ctx context.Context, dst schema.WO, src schema.RO, root []byte, ...) ([]byte, error) + ReadDir func(ctx context.Context, src schema.RO, root []byte, id K) ([]DirEntry[K], error) + ReadFile func(ctx context.Context, src schema.RO, root []byte, id K, buf []byte) (int, error)