Documentation
¶
Index ¶
- Variables
- type Addition
- type FileObj
- type Pan115Share
- func (d *Pan115Share) Config() driver.Config
- func (d *Pan115Share) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan115Share) Drop(ctx context.Context) error
- func (d *Pan115Share) GetAddition() driver.Additional
- func (d *Pan115Share) Init(ctx context.Context) error
- func (d *Pan115Share) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Pan115Share) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Pan115Share) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Pan115Share) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan115Share) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Pan115Share) Remove(ctx context.Context, obj model.Obj) error
- func (d *Pan115Share) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- func (d *Pan115Share) WaitLimit(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgent = driver115.UA115Browser
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
Cookie string `json:"cookie" type:"text" help:"one of QR code token and cookie required"`
QRCodeToken string `json:"qrcode_token" type:"text" help:"one of QR code token and cookie required"`
QRCodeSource string `` /* 158-byte string literal not displayed */
PageSize int64 `json:"page_size" type:"number" default:"1000" help:"list api per page size of 115 driver"`
LimitRate float64 `json:"limit_rate" type:"float" default:"2" help:"limit all api request rate (1r/[limit_rate]s)"`
ReceiveCode string `json:"receive_code" type:"text" required:"true" help:"receive code of 115 share link"`
driver.RootID
}
type FileObj ¶
type FileObj struct {
Size int64
Sha1 string
Utm time.Time
FileName string
FileID string
// contains filtered or unexported fields
}
func (*FileObj) CreateTime ¶
type Pan115Share ¶
type Pan115Share struct {
// contains filtered or unexported fields
}
func (*Pan115Share) Config ¶
func (d *Pan115Share) Config() driver.Config
func (*Pan115Share) GetAddition ¶
func (d *Pan115Share) GetAddition() driver.Additional
func (*Pan115Share) Put ¶
func (d *Pan115Share) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error
Click to show internal directories.
Click to hide internal directories.