Documentation ¶
Index ¶
- func New() driver.Driver
- type Addition
- type BaseResp
- type DownResp
- type File
- type Files
- type Pan123
- func (d *Pan123) Config() driver.Config
- func (d *Pan123) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan123) Drop(ctx context.Context) error
- func (d *Pan123) GetAddition() driver.Additional
- func (d *Pan123) Init(ctx context.Context, storage model.Storage) error
- func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Pan123) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Pan123) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Pan123) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan123) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Pan123) Remove(ctx context.Context, obj model.Obj) error
- func (d *Pan123) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type TokenResp
- type UploadResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addition ¶
type Addition struct { Username string `json:"username" required:"true"` Password string `json:"password" required:"true"` OrderBy string `json:"order_by" type:"select" options:"file_name,size,update_at" default:"file_name"` OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"` driver.RootID // define other StreamUpload bool `json:"stream_upload"` }
type File ¶
type Pan123 ¶
func (*Pan123) GetAddition ¶
func (d *Pan123) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.