Documentation ¶
Index ¶
- func CloneObj(o model.Obj, newID, newName string) model.Obj
- type Addition
- type MoPan
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addition ¶
type Addition struct { Phone string `json:"phone" required:"true"` Password string `json:"password" required:"true"` SMSCode string `json:"sms_code" help:"input 'send' send sms "` RootFolderID string `json:"root_folder_id" default:""` CloudID string `json:"cloud_id"` OrderBy string `json:"order_by" type:"select" options:"filename,filesize,lastOpTime" default:"filename"` OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"` DeviceInfo string `json:"device_info"` UploadThread string `json:"upload_thread" default:"3" help:"1<=thread<=32"` }
Click to show internal directories.
Click to hide internal directories.