Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + func CloneObj(o model.Obj, newID, newName string) model.Obj + type Addition struct + CloudID string + DeviceInfo string + OrderBy string + OrderDirection string + Password string + Phone string + RootFolderID string + SMSCode string + UploadThread string + func (a *Addition) GetRootId() string + type MoPan struct + func (d *MoPan) Config() driver.Config + func (d *MoPan) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *MoPan) Drop(ctx context.Context) error + func (d *MoPan) GetAddition() driver.Additional + func (d *MoPan) Init(ctx context.Context) error + func (d *MoPan) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *MoPan) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *MoPan) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + func (d *MoPan) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *MoPan) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + func (d *MoPan) Remove(ctx context.Context, obj model.Obj) error + func (d *MoPan) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)