Documentation
¶
Index ¶
- type Addition
- type CommonRsp
- type Conf
- type File
- type FileLikeResp
- type FileListResp
- type ManualSign
- type ProofRange
- type QuarkOpen
- func (d *QuarkOpen) Config() driver.Config
- func (d *QuarkOpen) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *QuarkOpen) Drop(ctx context.Context) error
- func (d *QuarkOpen) GetAddition() driver.Additional
- func (d *QuarkOpen) GetFiles(ctx context.Context, parent string) ([]File, error)
- func (d *QuarkOpen) Init(ctx context.Context) error
- func (d *QuarkOpen) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *QuarkOpen) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *QuarkOpen) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *QuarkOpen) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *QuarkOpen) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *QuarkOpen) Remove(ctx context.Context, obj model.Obj) error
- func (d *QuarkOpen) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type QueryCursor
- type RefreshTokenOnlineAPIResp
- type Resp
- type UpFinishResp
- type UpPreResp
- type UpUrlInfo
- type UpUrlResp
- type UserInfo
- type UserInfoResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
driver.RootID
OrderBy string `json:"order_by" type:"select" options:"none,file_type,file_name,updated_at,created_at" default:"none"`
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
UseOnlineAPI bool `json:"use_online_api" default:"true"`
APIAddress string `json:"api_url_address" default:"https://api.oplist.org/quarkyun/renewapi"`
AccessToken string `json:"access_token" required:"false" default:""`
RefreshToken string `json:"refresh_token" required:"true"`
AppID string `json:"app_id" required:"true" help:"Keep it empty if you don't have one"`
SignKey string `json:"sign_key" required:"true" help:"Keep it empty if you don't have one"`
}
type File ¶
type File struct {
Fid string `json:"fid"`
ParentFid string `json:"parent_fid"`
Category int64 `json:"category"`
FileName string `json:"filename"`
Size int64 `json:"size"`
FileType string `json:"file_type"`
ThumbnailURL string `json:"thumbnail_url"`
ContentHash string `json:"content_hash"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type FileLikeResp ¶
type FileListResp ¶
type FileListResp struct {
CommonRsp
Data struct {
FileList []File `json:"file_list"`
LastPage bool `json:"last_page"`
NextQueryCursor QueryCursor `json:"next_query_cursor"`
} `json:"data"`
}
type ManualSign ¶
ManualSign 用于手动签名URL的结构体
type ProofRange ¶
type QuarkOpen ¶
func (*QuarkOpen) GetAddition ¶
func (d *QuarkOpen) GetAddition() driver.Additional
type QueryCursor ¶
type UpFinishResp ¶
type UpPreResp ¶
type UpPreResp struct {
CommonRsp
Data struct {
Finish bool `json:"finish"`
TaskID string `json:"task_id"`
Fid string `json:"fid"`
CommonHeaders struct {
XOssContentSha256 string `json:"X-Oss-Content-Sha256"`
XOssDate string `json:"X-Oss-Date"`
} `json:"common_headers"`
UploadUrls []struct {
PartNumber int `json:"part_number"`
SignatureInfo struct {
AuthType string `json:"auth_type"`
Signature string `json:"signature"`
} `json:"signature_info"`
UploadURL string `json:"upload_url"`
Expired int64 `json:"expired"`
} `json:"upload_urls"`
PartSize int64 `json:"part_size"`
} `json:"data"`
}
type UpUrlInfo ¶
type UpUrlInfo struct {
UploadUrls []struct {
PartNumber int `json:"part_number"`
PartSize int `json:"part_size"`
SignatureInfo struct {
AuthType string `json:"auth_type"`
Signature string `json:"signature"`
} `json:"signature_info"`
UploadURL string `json:"upload_url"`
} `json:"upload_urls"`
CommonHeaders struct {
XOssContentSha256 string `json:"X-Oss-Content-Sha256"`
XOssDate string `json:"X-Oss-Date"`
} `json:"common_headers"`
UploadID string `json:"upload_id"`
}
type UserInfoResp ¶
Click to show internal directories.
Click to hide internal directories.