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) ([]model.Obj, 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 TranscodingResp
- type UpAuthResp
- type UpPreResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
Cookie string `json:"cookie" required:"true"`
driver.RootID
OrderBy string `json:"order_by" type:"select" options:"none,file_type,file_name,updated_at" default:"none"`
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
UseTransCodingAddress bool `` /* 132-byte string literal not displayed */
OnlyListVideoFile bool `json:"only_list_video_file" default:"false"`
AdditionVersion int
}
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"`
}
func (*File) CreateTime ¶
type QuarkOrUC ¶
func (*QuarkOrUC) GetAddition ¶
func (d *QuarkOrUC) GetAddition() driver.Additional
type TranscodingResp ¶
type TranscodingResp struct {
Resp
Data struct {
DefaultResolution string `json:"default_resolution"`
OriginDefaultResolution string `json:"origin_default_resolution"`
VideoList []struct {
Resolution string `json:"resolution"`
VideoInfo struct {
Duration int `json:"duration"`
Size int64 `json:"size"`
Format string `json:"format"`
Width int `json:"width"`
Height int `json:"height"`
Bitrate float64 `json:"bitrate"`
Codec string `json:"codec"`
Fps float64 `json:"fps"`
Rotate int `json:"rotate"`
Audio struct {
Duration int `json:"duration"`
Bitrate float64 `json:"bitrate"`
Codec string `json:"codec"`
Channels int `json:"channels"`
} `json:"audio"`
UpdateTime int64 `json:"update_time"`
URL string `json:"url"`
Resolution string `json:"resolution"`
HlsType string `json:"hls_type"`
Finish bool `json:"finish"`
Resoultion string `json:"resoultion"`
Success bool `json:"success"`
} `json:"video_info,omitempty"`
} `json:"video_list"`
//AudioList []interface{} `json:"audio_list"`
FileName string `json:"file_name"`
NameSpace int `json:"name_space"`
Size int64 `json:"size"`
Thumbnail string `json:"thumbnail"`
} `json:"data"`
}
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.