Documentation ¶
Index ¶
- func File(mfile *MegaPath) *basefs.File
- func New(core *core.Core) core.DriverFS
- type Config
- type MegaPath
- type Service
- func (s *Service) Changes() ([]*basefs.Change, error)
- func (s *Service) Create(parent *basefs.File, name string, isDir bool) (*basefs.File, error)
- func (s *Service) Delete(file *basefs.File) error
- func (s *Service) DownloadTo(w io.Writer, file *basefs.File) error
- func (s *Service) ListAll() ([]*basefs.File, error)
- func (s *Service) Move(file *basefs.File, newParent *basefs.File, name string) (*basefs.File, error)
- func (s *Service) StatFS(*fuseops.StatFSOp) error
- func (s *Service) Upload(reader io.Reader, file *basefs.File) (*basefs.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Fs service specific configuration here Credentials struct { Email string Password string } }
Config mega.yaml config file structure
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service gdrive service information
func NewService ¶
NewService creates and initializes a new Mega service
func (*Service) Changes ¶
Changes populate a list with changes to be handled on basefs Returns a list of changes
func (*Service) DownloadTo ¶
DownloadTo from gdrive to a writer
Click to show internal directories.
Click to hide internal directories.