package gdrivefs

import (
	"dev.hexasoftware.com/hxs/cloudmount/cloudfs"
	"github.com/jacobsa/fuse/fuseutil"
	drive "google.golang.org/api/drive/v3"
)

// Driver for gdrive
type GDriveDriver struct {
	core *cloudfs.Core

	fuseHandler *FuseHandler
	driveClient *drive.Service
}

func New() cloudfs.Driver {
	return &GDriveDriver{}

}

func (d *GDriveDriver) Init(core *cloudfs.Core) {
	d.core = core
	d.driveClient = d.GetDriveService()
}

func (d *GDriveDriver) Refresh() {

}

func (d *GDriveDriver) FuseHandler() fuseutil.FileSystem {

	return NewFuseHandler(d)

}
