mega

package
v3.34.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	// Usually one of two
	//driver.RootPath
	//driver.RootID
	Email    string `json:"email" required:"true"`
	Password string `json:"password" required:"true"`
}

type Mega

type Mega struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*Mega) Config

func (d *Mega) Config() driver.Config

func (*Mega) Copy

func (d *Mega) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Mega) Drop

func (d *Mega) Drop(ctx context.Context) error

func (*Mega) GetAddition

func (d *Mega) GetAddition() driver.Additional

func (*Mega) GetRoot added in v3.7.1

func (d *Mega) GetRoot(ctx context.Context) (model.Obj, error)

func (*Mega) Init

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 (*Mega) List

func (d *Mega) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*Mega) MakeDir

func (d *Mega) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*Mega) Move

func (d *Mega) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Mega) Put

func (d *Mega) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error

func (*Mega) Remove

func (d *Mega) Remove(ctx context.Context, obj model.Obj) error

func (*Mega) Rename

func (d *Mega) Rename(ctx context.Context, srcObj model.Obj, newName string) error

type MegaNode

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

func (*MegaNode) CreateTime added in v3.27.0

func (m *MegaNode) CreateTime() time.Time

func (*MegaNode) GetHash added in v3.27.0

func (m *MegaNode) GetHash() utils.HashInfo

func (*MegaNode) GetID

func (m *MegaNode) GetID() string

func (*MegaNode) GetName added in v3.27.0

func (m *MegaNode) GetName() string

func (*MegaNode) GetPath

func (m *MegaNode) GetPath() string

func (*MegaNode) GetSize added in v3.27.0

func (m *MegaNode) GetSize() int64

func (*MegaNode) IsDir

func (m *MegaNode) IsDir() bool

func (*MegaNode) ModTime

func (m *MegaNode) ModTime() time.Time

Jump to

Keyboard shortcuts

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