quark

package
v3.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

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

type Conf

type Conf struct {
	// contains filtered or unexported fields
}

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 HashResp

type HashResp struct {
	Resp
	Data struct {
		Finish     bool   `json:"finish"`
		Fid        string `json:"fid"`
		Thumbnail  string `json:"thumbnail"`
		FormatType string `json:"format_type"`
	} `json:"data"`
	Metadata struct {
	} `json:"metadata"`
}

type QuarkOrUC

type QuarkOrUC struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*QuarkOrUC) Config

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

func (*QuarkOrUC) Copy

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

func (*QuarkOrUC) Drop

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

func (*QuarkOrUC) GetAddition

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

func (*QuarkOrUC) GetFiles

func (d *QuarkOrUC) GetFiles(parent string) ([]File, error)

func (*QuarkOrUC) Init

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

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

func (*QuarkOrUC) MakeDir

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

func (*QuarkOrUC) Move

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

func (*QuarkOrUC) Put

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

func (*QuarkOrUC) Remove

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

func (*QuarkOrUC) Rename

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

type Resp

type Resp struct {
	Status  int    `json:"status"`
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type SortResp

type SortResp struct {
	Resp
	Data struct {
		List []File `json:"list"`
	} `json:"data"`
	Metadata struct {
		Size  int    `json:"_size"`
		Page  int    `json:"_page"`
		Count int    `json:"_count"`
		Total int    `json:"_total"`
		Way   string `json:"way"`
	} `json:"metadata"`
}

type UpAuthResp

type UpAuthResp struct {
	Resp
	Data struct {
		AuthKey string        `json:"auth_key"`
		Speed   int           `json:"speed"`
		Headers []interface{} `json:"headers"`
	} `json:"data"`
	Metadata struct {
	} `json:"metadata"`
}

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

Jump to

Keyboard shortcuts

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