quark_uc_tv

package
v3.37.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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 CommonRsp

type CommonRsp struct {
	Status int    `json:"status"`
	ReqID  string `json:"req_id"`
}

type Conf

type Conf struct {
	// contains filtered or unexported fields
}
type FileLink struct {
	CommonRsp
	Data struct {
		Fid         string `json:"fid"`
		FileName    string `json:"file_name"`
		Size        int64  `json:"size"`
		DownloadURL string `json:"download_url"`
	} `json:"data"`
}

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

func (f *Files) CreateTime() time.Time

func (*Files) GetHash

func (f *Files) GetHash() utils.HashInfo

func (*Files) GetID

func (f *Files) GetID() string

func (*Files) GetName

func (f *Files) GetName() string

func (*Files) GetPath

func (f *Files) GetPath() string

func (*Files) GetSize

func (f *Files) GetSize() int64

func (*Files) IsDir

func (f *Files) IsDir() bool

func (*Files) ModTime

func (f *Files) ModTime() time.Time

type FilesData

type FilesData struct {
	CommonRsp
	Data struct {
		TotalCount int64   `json:"total_count"`
		Files      []Files `json:"files"`
	} `json:"data"`
}

type QuarkUCTV

type QuarkUCTV struct {
	*QuarkUCTVCommon
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*QuarkUCTV) Config

func (d *QuarkUCTV) Config() driver.Config

func (*QuarkUCTV) Copy

func (d *QuarkUCTV) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*QuarkUCTV) Drop

func (d *QuarkUCTV) Drop(ctx context.Context) error

func (*QuarkUCTV) GetAddition

func (d *QuarkUCTV) GetAddition() driver.Additional

func (*QuarkUCTV) Init

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 (*QuarkUCTV) List

func (d *QuarkUCTV) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*QuarkUCTV) MakeDir

func (d *QuarkUCTV) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)

func (*QuarkUCTV) Move

func (d *QuarkUCTV) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)

func (*QuarkUCTV) Put

func (d *QuarkUCTV) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) (model.Obj, error)

func (*QuarkUCTV) Remove

func (d *QuarkUCTV) Remove(ctx context.Context, obj model.Obj) error

func (*QuarkUCTV) Rename

func (d *QuarkUCTV) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)

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"`
}

type Resp

type Resp struct {
	CommonRsp
	Errno     int    `json:"errno"`
	ErrorInfo string `json:"error_info"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL