Documentation ¶
Index ¶
- func GetCodeURL(config *oauth.Config)
- type DriveDir
- func (DriveDir) Attr() fuse.Attr
- func (d *DriveDir) Create(req *fuse.CreateRequest, res *fuse.CreateResponse, intr fs.Intr) (fs.Node, fs.Handle, fuse.Error)
- func (d *DriveDir) Fsync(req *fuse.FsyncRequest, intr fs.Intr) fuse.Error
- func (d *DriveDir) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)
- func (d *DriveDir) Mkdir(req *fuse.MkdirRequest, intr fs.Intr) (fs.Node, fuse.Error)
- func (d *DriveDir) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)
- func (d *DriveDir) Remove(req *fuse.RemoveRequest, intr fs.Intr) fuse.Error
- func (d *DriveDir) Rename(req *fuse.RenameRequest, node fs.Node, intr fs.Intr) fuse.Error
- type DriveFile
- func (d DriveFile) Attr() fuse.Attr
- func (d *DriveFile) Flush(req *fuse.FlushRequest, intr fs.Intr) fuse.Error
- func (d *DriveFile) Lock()
- func (d *DriveFile) Open(req *fuse.OpenRequest, resp *fuse.OpenResponse, intr fs.Intr) (fs.Handle, fuse.Error)
- func (d DriveFile) ReadAll(intr fs.Intr) ([]byte, fuse.Error)
- func (d *DriveFile) Setattr(req *fuse.SetattrRequest, resp *fuse.SetattrResponse, intr fs.Intr) fuse.Error
- func (d *DriveFile) Unlock()
- func (d *DriveFile) Write(req *fuse.WriteRequest, resp *fuse.WriteResponse, intr fs.Intr) fuse.Error
- type Root
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCodeURL ¶
GetCodeURL jumps prints the url to get the users auth code and exits
Types ¶
type DriveDir ¶
DriveDir represents a directory in google drive
func (*DriveDir) Create ¶
func (d *DriveDir) Create(req *fuse.CreateRequest, res *fuse.CreateResponse, intr fs.Intr) (fs.Node, fs.Handle, fuse.Error)
Create creates an empty file inside of d
func (*DriveDir) Fsync ¶
FSync is a place holder and does nothing but satisfyes the FSyncer interface
type DriveFile ¶
type DriveFile struct { File *drive.File TmpFile *os.File Modified time.Time Created time.Time Root bool *sync.Mutex }
DriveFile represents a file in google drive
func (*DriveFile) Open ¶
func (d *DriveFile) Open(req *fuse.OpenRequest, resp *fuse.OpenResponse, intr fs.Intr) (fs.Handle, fuse.Error)
Open a file or directory
func (DriveFile) ReadAll ¶
ReadAll reads an entire file from google drive and returns the resulting bytes
Click to show internal directories.
Click to hide internal directories.