Documentation
¶
Index ¶
- type Addition
- type Conf
- type DownResp
- type File
- type HashResp
- type QuarkOrUC
- func (d *QuarkOrUC) Config() driver.Config
- func (d *QuarkOrUC) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *QuarkOrUC) Drop(ctx context.Context) error
- func (d *QuarkOrUC) GetAddition() driver.Additional
- func (d *QuarkOrUC) GetFiles(parent string) ([]File, error)
- func (d *QuarkOrUC) Init(ctx context.Context) error
- func (d *QuarkOrUC) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *QuarkOrUC) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *QuarkOrUC) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *QuarkOrUC) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *QuarkOrUC) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *QuarkOrUC) Remove(ctx context.Context, obj model.Obj) error
- func (d *QuarkOrUC) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type Resp
- type SortResp
- type UpAuthResp
- type UpPreResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownResp ¶
type DownResp struct {
Resp
Data []struct {
//Fid string `json:"fid"`
//FileName string `json:"file_name"`
//PdirFid string `json:"pdir_fid"`
//Category int `json:"category"`
//FileType int `json:"file_type"`
//Size int `json:"size"`
//FormatType string `json:"format_type"`
//Status int `json:"status"`
//Tags string `json:"tags"`
//LCreatedAt int64 `json:"l_created_at"`
//LUpdatedAt int64 `json:"l_updated_at"`
//NameSpace int `json:"name_space"`
//Thumbnail string `json:"thumbnail"`
DownloadUrl string `json:"download_url"`
} `json:"data"`
}
type File ¶
type File struct {
Fid string `json:"fid"`
FileName string `json:"file_name"`
//PdirFid string `json:"pdir_fid"`
//Category int `json:"category"`
//FileType int `json:"file_type"`
Size int64 `json:"size"`
//FormatType string `json:"format_type"`
//Status int `json:"status"`
//Tags string `json:"tags,omitempty"`
//LCreatedAt int64 `json:"l_created_at"`
LUpdatedAt int64 `json:"l_updated_at"`
//NameSpace int `json:"name_space"`
//IncludeItems int `json:"include_items,omitempty"`
//RiskType int `json:"risk_type"`
//BackupSign int `json:"backup_sign"`
//Duration int `json:"duration"`
//FileSource string `json:"file_source"`
File bool `json:"file"`
//CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type QuarkOrUC ¶
func (*QuarkOrUC) GetAddition ¶
func (d *QuarkOrUC) GetAddition() driver.Additional
type UpAuthResp ¶
type UpPreResp ¶
type UpPreResp struct {
Resp
Data struct {
TaskId string `json:"task_id"`
Finish bool `json:"finish"`
UploadId string `json:"upload_id"`
ObjKey string `json:"obj_key"`
UploadUrl string `json:"upload_url"`
Fid string `json:"fid"`
Bucket string `json:"bucket"`
Callback struct {
CallbackUrl string `json:"callbackUrl"`
CallbackBody string `json:"callbackBody"`
} `json:"callback"`
FormatType string `json:"format_type"`
Size int `json:"size"`
AuthInfo string `json:"auth_info"`
} `json:"data"`
Metadata struct {
PartThread int `json:"part_thread"`
Acc2 string `json:"acc2"`
Acc1 string `json:"acc1"`
PartSize int `json:"part_size"` // 分片大小
} `json:"metadata"`
}
Click to show internal directories.
Click to hide internal directories.