Documentation ¶
Overview ¶
FUSE adapter for interfacing with Varasto from filesystem
Index ¶
- func Entrypoint() *cobra.Command
- func NewByIdDir(srv *FsServer) *byIdDir
- func NewDirAdapter(dirID string, srv *FsServer) *dirAdapter
- func NewDirByIDQuery(srv *FsServer) *dirByIDQuery
- type BlobCache
- type BlobData
- type CollectionDirNode
- func (d *CollectionDirNode) Attr(_ context.Context, a *fuse.Attr) error
- func (d *CollectionDirNode) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (d *CollectionDirNode) Lookup(ctx context.Context, name string) (fs.Node, error)
- func (d *CollectionDirNode) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (d *CollectionDirNode) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (d *CollectionDirNode) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- func (d *CollectionDirNode) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
- type CollectionDirNodeFile
- type FsServer
- type VarastoFSRoot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entrypoint ¶
func NewByIdDir ¶
func NewByIdDir(srv *FsServer) *byIdDir
func NewDirAdapter ¶
func NewDirByIDQuery ¶
func NewDirByIDQuery(srv *FsServer) *dirByIDQuery
Types ¶
type BlobCache ¶
type BlobCache struct {
// contains filtered or unexported fields
}
func NewBlobCache ¶
func NewBlobCache(clientConfig stoclient.ClientConfig, logl *logex.Leveled) *BlobCache
type CollectionDirNode ¶
type CollectionDirNode struct {
// contains filtered or unexported fields
}
func NewCollectionDirNode ¶
func NewCollectionDirNode( collection *stotypes.Collection, fullPathFromRoot string, inode uint64, filesCommitted []*CollectionDirNodeFile, subdirsCommitted []*CollectionDirNode, ) *CollectionDirNode
func (*CollectionDirNode) Create ¶
func (d *CollectionDirNode) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
creates a file (mkdir has separate func)
func (*CollectionDirNode) Mkdir ¶
func (d *CollectionDirNode) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
func (*CollectionDirNode) ReadDirAll ¶
func (*CollectionDirNode) Remove ¶
func (d *CollectionDirNode) Remove(ctx context.Context, req *fuse.RemoveRequest) error
func (*CollectionDirNode) Rename ¶
func (d *CollectionDirNode) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
type CollectionDirNodeFile ¶
type CollectionDirNodeFile struct {
// contains filtered or unexported fields
}
func (CollectionDirNodeFile) Read ¶
func (f CollectionDirNodeFile) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
type FsServer ¶
type FsServer struct {
// contains filtered or unexported fields
}
func NewFsServer ¶
type VarastoFSRoot ¶
type VarastoFSRoot struct {
// contains filtered or unexported fields
}
TODO: make the root return "backup exclude" xattr
func NewVarastoFSRoot ¶
func NewVarastoFSRoot(entries []stoEntry, srv *FsServer) (*VarastoFSRoot, error)
func (*VarastoFSRoot) ReadDirAll ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Client for FUSE server's API
|
Client for FUSE server's API |
This entrypoint is in own package, so we don't need to sprinkle conditional compilation all around the base "stofuse" package because it doesn't compile on Windows
|
This entrypoint is in own package, so we don't need to sprinkle conditional compilation all around the base "stofuse" package because it doesn't compile on Windows |
Click to show internal directories.
Click to hide internal directories.