Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + type Addition struct + Email string + Password string + TwoFACode string + TwoFASecret string + type Mega struct + func (d *Mega) Config() driver.Config + func (d *Mega) Copy(ctx context.Context, srcObj, dstDir model.Obj) error + func (d *Mega) Drop(ctx context.Context) error + func (d *Mega) GetAddition() driver.Additional + func (d *Mega) GetRoot(ctx context.Context) (model.Obj, error) + func (d *Mega) Init(ctx context.Context) error + func (d *Mega) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *Mega) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *Mega) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error + func (d *Mega) Move(ctx context.Context, srcObj, dstDir model.Obj) error + func (d *Mega) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error + func (d *Mega) Remove(ctx context.Context, obj model.Obj) error + func (d *Mega) Rename(ctx context.Context, srcObj model.Obj, newName string) error + type MegaNode struct + func (m *MegaNode) CreateTime() time.Time + func (m *MegaNode) GetHash() utils.HashInfo + func (m *MegaNode) GetID() string + func (m *MegaNode) GetName() string + func (m *MegaNode) GetPath() string + func (m *MegaNode) GetSize() int64 + func (m *MegaNode) IsDir() bool + func (m *MegaNode) ModTime() time.Time