fs

package
v0.0.0-...-eb1ac4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmount

func Unmount(pMountPoint string) error

Unmount: unmount a filesystem Parameters: pMountPoint = mountpoint Returns: nil if succeceded otherwise the error

Types

type DownTheDriveFs

type DownTheDriveFs struct {
	// contains filtered or unexported fields
}

func NewDownTheDriveFs

func NewDownTheDriveFs(pDownTheDrive *downthedrive.DownTheDrive, pOneDriveBaseItemPath *onedriveclient.OneDriveItem, pLocalStore *downthedrive.LocalStore) (*DownTheDriveFs, error)

NewDownTheDriveFs: create a new filesystem object Parameters: pDownTheDrive = DownTheDrive instance pOneDriveBaseItemPath = base item path on onedrive

func (*DownTheDriveFs) Close

func (vSelf *DownTheDriveFs) Close() error

func (*DownTheDriveFs) Mount

func (vSelf *DownTheDriveFs) Mount(pMountPoint string, pAllowOther bool) error

Mount: mount the filesystem Parameters: pMountPoint = mount point pAllowOther = if true allow others (and root) to access the filesystem Returns: nil if succeded othewise the error

func (*DownTheDriveFs) Root

func (vSelf *DownTheDriveFs) Root() (fs.Node, error)

type FileHandle

type FileHandle struct {
	// contains filtered or unexported fields
}

func (*FileHandle) Read

func (vSelf *FileHandle) Read(pContext context.Context, pRequest *fuse.ReadRequest, pResponse *fuse.ReadResponse) error

func (*FileHandle) Release

func (vSelf *FileHandle) Release(pContext context.Context, pRequest *fuse.ReleaseRequest) error

type OneDriveFsItem

type OneDriveFsItem struct {
	// contains filtered or unexported fields
}

func (*OneDriveFsItem) Attr

func (vSelf *OneDriveFsItem) Attr(ctx context.Context, a *fuse.Attr) error

func (*OneDriveFsItem) Lookup

func (vSelf *OneDriveFsItem) Lookup(pContext context.Context, pName string) (fs.Node, error)

func (*OneDriveFsItem) Open

func (vSelf *OneDriveFsItem) Open(pContext context.Context, pRequest *fuse.OpenRequest, pResponse *fuse.OpenResponse) (fs.Handle, error)

func (*OneDriveFsItem) ReadDirAll

func (vSelf *OneDriveFsItem) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL