Documentation ¶
Index ¶
- func Mount(client *drive.Client, chunkManager *chunk.Manager, mountpoint string, ...) error
- func Unmount(mountpoint string, notify bool) error
- type FS
- type Object
- func (o *Object) Attr(ctx context.Context, attr *fuse.Attr) error
- func (o *Object) Lookup(ctx context.Context, name string) (fs.Node, error)
- func (o *Object) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (o *Object) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
- func (o *Object) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
- func (o *Object) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (o *Object) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- func (o *Object) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents one drive object
func (*Object) Open ¶
func (o *Object) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)
Open a file
func (*Object) Read ¶
func (o *Object) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
Read reads some bytes or the whole file
func (*Object) ReadDirAll ¶
ReadDirAll shows all files in the current directory
Click to show internal directories.
Click to hide internal directories.