Documentation
¶
Index ¶
- type Addition
- type AsyncManagerData
- type AsyncTask
- type AsyncTaskInfo
- type BitQiu
- func (d *BitQiu) Config() driver.Config
- func (d *BitQiu) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *BitQiu) Drop(ctx context.Context) error
- func (d *BitQiu) GetAddition() driver.Additional
- func (d *BitQiu) Init(ctx context.Context) error
- func (d *BitQiu) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *BitQiu) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *BitQiu) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *BitQiu) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *BitQiu) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, ...) (model.Obj, error)
- func (d *BitQiu) Remove(ctx context.Context, obj model.Obj) error
- func (d *BitQiu) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type ChunkUploadResponse
- type CreateDirData
- type DownloadData
- type LoginData
- type Object
- type Resource
- type ResourcePage
- type Response
- type UploadInitData
- type UserInfoData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
driver.RootID
Username string `json:"username" required:"true"`
Password string `json:"password" required:"true"`
UserPlatform string `json:"user_platform" help:"Optional device identifier; auto-generated if empty."`
OrderType string `json:"order_type" type:"select" options:"updateTime,createTime,name,size" default:"updateTime"`
OrderDesc bool `json:"order_desc"`
PageSize string `json:"page_size" default:"24" help:"Number of entries to request per page."`
UserAgent string `` /* 139-byte string literal not displayed */
}
type AsyncManagerData ¶
type AsyncTask ¶
type AsyncTask struct {
TaskID string `json:"taskId"`
Status int `json:"status"`
ErrorMsg string `json:"errorMsg"`
Message string `json:"message"`
Result *AsyncTaskInfo `json:"result"`
TargetName string `json:"targetName"`
TargetDirID string `json:"parentId"`
}
func (AsyncTask) ErrorMessage ¶
type AsyncTaskInfo ¶
type BitQiu ¶
func (*BitQiu) GetAddition ¶
func (d *BitQiu) GetAddition() driver.Additional
type ChunkUploadResponse ¶
type CreateDirData ¶
type DownloadData ¶
type Resource ¶
type Resource struct {
ResourceID string `json:"resourceId"`
ResourceUID string `json:"resourceUid"`
ResourceType int `json:"resourceType"`
ParentID string `json:"parentId"`
Name string `json:"name"`
ExtName string `json:"extName"`
Size *json.Number `json:"size"`
CreateTime *string `json:"createTime"`
UpdateTime *string `json:"updateTime"`
FileMD5 string `json:"fileMd5"`
}
type ResourcePage ¶
type UploadInitData ¶
type UploadInitData struct {
Name string `json:"name"`
Size int64 `json:"size"`
Token string `json:"token"`
FileUID string `json:"fileUid"`
FileSID string `json:"fileSid"`
ParentID string `json:"parentId"`
UserID int64 `json:"userId"`
SerialNumber string `json:"serialNumber"`
UploadURL string `json:"uploadUrl"`
AppID string `json:"appId"`
}
type UserInfoData ¶
type UserInfoData struct {
RootDirID string `json:"rootDirId"`
}
Click to show internal directories.
Click to hide internal directories.