Documentation
¶
Index ¶
- type Addition
- type Obj
- type Open115
- func (d *Open115) Config() driver.Config
- func (d *Open115) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Open115) DeleteOfflineTask(ctx context.Context, infoHash string, deleteFiles bool) error
- func (d *Open115) Drop(ctx context.Context) error
- func (d *Open115) GetAddition() driver.Additional
- func (d *Open115) GetObjInfo(ctx context.Context, path string) (model.Obj, error)
- func (d *Open115) Init(ctx context.Context) error
- func (d *Open115) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Open115) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Open115) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *Open115) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Open115) OfflineDownload(ctx context.Context, uris []string, dstDir model.Obj) ([]string, error)
- func (d *Open115) OfflineList(ctx context.Context) (*sdk.OfflineTaskListResp, error)
- func (d *Open115) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, ...) error
- func (d *Open115) Remove(ctx context.Context, obj model.Obj) error
- func (d *Open115) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- func (d *Open115) WaitLimit(ctx context.Context) error
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.RootID
// define other
OrderBy string `json:"order_by" type:"select" options:"file_name,file_size,user_utime,file_type"`
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc"`
LimitRate float64 `json:"limit_rate" type:"float" default:"1" help:"limit all api request rate ([limit]r/1s)"`
AccessToken string `json:"access_token" required:"true"`
RefreshToken string `json:"refresh_token" required:"true"`
}
type Obj ¶
type Obj sdk.GetFilesResp_File
type Open115 ¶
func (*Open115) DeleteOfflineTask ¶ added in v4.0.9
func (*Open115) GetAddition ¶
func (d *Open115) GetAddition() driver.Additional
func (*Open115) GetObjInfo ¶ added in v4.1.0
func (*Open115) OfflineDownload ¶ added in v4.0.9
func (*Open115) OfflineList ¶ added in v4.0.9
func (*Open115) Put ¶
func (d *Open115) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) error
Click to show internal directories.
Click to hide internal directories.