Documentation ¶
Index ¶
- Constants
- func GetApi(rawUrl string) string
- type Addition
- type File
- type Files
- type Pan123Share
- func (d *Pan123Share) APIRateLimit(ctx context.Context, api string) error
- func (d *Pan123Share) Config() driver.Config
- func (d *Pan123Share) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan123Share) Drop(ctx context.Context) error
- func (d *Pan123Share) GetAddition() driver.Additional
- func (d *Pan123Share) Init(ctx context.Context) error
- func (d *Pan123Share) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Pan123Share) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Pan123Share) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Pan123Share) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Pan123Share) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Pan123Share) Remove(ctx context.Context, obj model.Obj) error
- func (d *Pan123Share) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
View Source
const ( Api = "https://www.123pan.com/api" AApi = "https://www.123pan.com/a/api" BApi = "https://www.123pan.com/b/api" MainApi = BApi FileList = MainApi + "/share/get" DownloadInfo = MainApi + "/share/download/info" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { FileName string `json:"FileName"` Size int64 `json:"Size"` UpdateAt time.Time `json:"UpdateAt"` FileId int64 `json:"FileId"` Type int `json:"Type"` Etag string `json:"Etag"` S3KeyFlag string `json:"S3KeyFlag"` DownloadUrl string `json:"DownloadUrl"` }
func (File) CreateTime ¶ added in v3.27.0
type Pan123Share ¶
type Pan123Share struct { // contains filtered or unexported fields }
func (*Pan123Share) APIRateLimit ¶ added in v3.34.0
func (d *Pan123Share) APIRateLimit(ctx context.Context, api string) error
func (*Pan123Share) Config ¶
func (d *Pan123Share) Config() driver.Config
func (*Pan123Share) GetAddition ¶
func (d *Pan123Share) GetAddition() driver.Additional
func (*Pan123Share) Put ¶
func (d *Pan123Share) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error
Click to show internal directories.
Click to hide internal directories.