Documentation ¶
Index ¶
- type Addition
- 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) 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 ¶
This section is empty.
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
type TokenResp ¶
type TokenResp struct { //BaseResp Data struct { Token string `json:"token"` } `json:"data"` }
type UploadResp ¶
type UploadResp struct { //BaseResp Data struct { AccessKeyId string `json:"AccessKeyId"` Bucket string `json:"Bucket"` Key string `json:"Key"` SecretAccessKey string `json:"SecretAccessKey"` SessionToken string `json:"SessionToken"` FileId int64 `json:"FileId"` Reuse bool `json:"Reuse"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.