Documentation ¶
Index ¶
- Constants
- type Addition
- type CommonRsp
- type Conf
- type FileLink
- type Files
- type FilesData
- type QuarkUCTV
- func (d *QuarkUCTV) Config() driver.Config
- func (d *QuarkUCTV) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *QuarkUCTV) Drop(ctx context.Context) error
- func (d *QuarkUCTV) GetAddition() driver.Additional
- func (d *QuarkUCTV) Init(ctx context.Context) error
- func (d *QuarkUCTV) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *QuarkUCTV) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *QuarkUCTV) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *QuarkUCTV) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *QuarkUCTV) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *QuarkUCTV) Remove(ctx context.Context, obj model.Obj) error
- func (d *QuarkUCTV) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type QuarkUCTVCommon
- type RefreshTokenAuthResp
- type Resp
Constants ¶
View Source
const ( UserAgent = "" /* 132-byte string literal not displayed */ DeviceBrand = "Xiaomi" Platform = "tv" DeviceName = "M2004J7AC" DeviceModel = "M2004J7AC" BuildDevice = "M2004J7AC" BuildProduct = "M2004J7AC" DeviceGpu = "Adreno (TM) 550" ActivityRect = "{}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { // Usually one of two driver.RootID // define other RefreshToken string `json:"refresh_token" required:"false" default:""` // 必要且影响登录,由签名决定 DeviceID string `json:"device_id" required:"false" default:""` // 登陆所用的数据 无需手动填写 QueryToken string `json:"query_token" required:"false" default:"" help:"don't edit'"` }
type Files ¶
type Files struct { Fid string `json:"fid"` ParentFid string `json:"parent_fid"` Category int `json:"category"` Filename string `json:"filename"` Size int64 `json:"size"` FileType string `json:"file_type"` SubItems int `json:"sub_items,omitempty"` Isdir int `json:"isdir"` Duration int `json:"duration"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` IsBackup int `json:"is_backup"` ThumbnailURL string `json:"thumbnail_url,omitempty"` }
func (*Files) CreateTime ¶
type QuarkUCTV ¶
type QuarkUCTV struct { *QuarkUCTVCommon model.Storage Addition // contains filtered or unexported fields }
func (*QuarkUCTV) GetAddition ¶
func (d *QuarkUCTV) GetAddition() driver.Additional
type QuarkUCTVCommon ¶
type QuarkUCTVCommon struct {
AccessToken string
}
type RefreshTokenAuthResp ¶
type RefreshTokenAuthResp struct { Code int `json:"code"` Message string `json:"message"` Data struct { Status int `json:"status"` Errno int `json:"errno"` ErrorInfo string `json:"error_info"` ReqID string `json:"req_id"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.