Documentation ¶
Index ¶
- type Addition
- type CheckLoginResp
- type DownloadResp
- type DownloadResp2
- type File
- type HomeInfoResp
- type ListResp
- type PrecreateResp
- type Terabox
- func (d *Terabox) Config() driver.Config
- func (d *Terabox) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Terabox) Drop(ctx context.Context) error
- func (d *Terabox) GetAddition() driver.Additional
- func (d *Terabox) Init(ctx context.Context) error
- func (d *Terabox) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Terabox) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Terabox) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Terabox) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Terabox) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Terabox) Remove(ctx context.Context, obj model.Obj) error
- func (d *Terabox) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { driver.RootPath Cookie string `json:"cookie" required:"true"` //JsToken string `json:"js_token" type:"string" required:"true"` DownloadAPI string `json:"download_api" type:"select" options:"official,crack" default:"official"` OrderBy string `json:"order_by" type:"select" options:"name,time,size" default:"name"` OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"` }
type CheckLoginResp ¶ added in v3.9.0
type CheckLoginResp struct {
Errno int `json:"errno"`
}
type DownloadResp ¶
type DownloadResp2 ¶
type File ¶
type File struct { //TkbindId int `json:"tkbind_id"` //OwnerType int `json:"owner_type"` //Category int `json:"category"` //RealCategory string `json:"real_category"` FsId int64 `json:"fs_id"` ServerMtime int64 `json:"server_mtime"` //OperId int `json:"oper_id"` //ServerCtime int `json:"server_ctime"` Thumbs struct { //Icon string `json:"icon"` Url3 string `json:"url3"` } `json:"thumbs"` //Wpfile int `json:"wpfile"` //LocalMtime int `json:"local_mtime"` Size int64 `json:"size"` //ExtentTinyint7 int `json:"extent_tinyint7"` Path string `json:"path"` //Share int `json:"share"` //ServerAtime int `json:"server_atime"` //Pl int `json:"pl"` //LocalCtime int `json:"local_ctime"` ServerFilename string `json:"server_filename"` //Md5 string `json:"md5"` //OwnerId int `json:"owner_id"` //Unlist int `json:"unlist"` Isdir int `json:"isdir"` }
type HomeInfoResp ¶
type PrecreateResp ¶
type Terabox ¶
func (*Terabox) GetAddition ¶
func (d *Terabox) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.