bitqiu

package
v3.56.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	driver.RootID
	Username     string `json:"username" required:"true"`
	Password     string `json:"password" required:"true"`
	UserPlatform string `json:"user_platform" help:"Optional device identifier; auto-generated if empty."`
	OrderType    string `json:"order_type" type:"select" options:"updateTime,createTime,name,size" default:"updateTime"`
	OrderDesc    bool   `json:"order_desc"`
	PageSize     string `json:"page_size" default:"24" help:"Number of entries to request per page."`
	UserAgent    string `` /* 139-byte string literal not displayed */
}

type AsyncManagerData

type AsyncManagerData struct {
	WaitTasks    []AsyncTask `json:"waitTaskList"`
	RunningTasks []AsyncTask `json:"runningTaskList"`
	SuccessTasks []AsyncTask `json:"successTaskList"`
	FailTasks    []AsyncTask `json:"failTaskList"`
	TaskList     []AsyncTask `json:"taskList"`
}

type AsyncTask

type AsyncTask struct {
	TaskID      string         `json:"taskId"`
	Status      int            `json:"status"`
	ErrorMsg    string         `json:"errorMsg"`
	Message     string         `json:"message"`
	Result      *AsyncTaskInfo `json:"result"`
	TargetName  string         `json:"targetName"`
	TargetDirID string         `json:"parentId"`
}

func (AsyncTask) ErrorMessage

func (t AsyncTask) ErrorMessage() string

type AsyncTaskInfo

type AsyncTaskInfo struct {
	Resource Resource `json:"resource"`
	DirID    string   `json:"dirId"`
	FileID   string   `json:"fileId"`
	Name     string   `json:"name"`
	ParentID string   `json:"parentId"`
}

type BitQiu

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

func (*BitQiu) Config

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

func (*BitQiu) Copy

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

func (*BitQiu) Drop

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

func (*BitQiu) GetAddition

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

func (*BitQiu) Init

func (d *BitQiu) Init(ctx context.Context) error
func (d *BitQiu) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*BitQiu) List

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

func (*BitQiu) MakeDir

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

func (*BitQiu) Move

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

func (*BitQiu) Put

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

func (*BitQiu) Remove

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

func (*BitQiu) Rename

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

type ChunkUploadResponse

type ChunkUploadResponse struct {
	ErrCode      int    `json:"errCode"`
	Offset       int64  `json:"offset"`
	Finished     int    `json:"finished"`
	FinishedFlag string `json:"finishedFlag"`
}

type CreateDirData

type CreateDirData struct {
	DirID    string `json:"dirId"`
	Name     string `json:"name"`
	ParentID string `json:"parentId"`
}

type DownloadData

type DownloadData struct {
	URL  string `json:"url"`
	MD5  string `json:"md5"`
	Size int64  `json:"size"`
}

type LoginData

type LoginData struct {
	UserID int64 `json:"userId"`
}

type Object

type Object struct {
	model.Object
	ParentID string
}

type Resource

type Resource struct {
	ResourceID   string       `json:"resourceId"`
	ResourceUID  string       `json:"resourceUid"`
	ResourceType int          `json:"resourceType"`
	ParentID     string       `json:"parentId"`
	Name         string       `json:"name"`
	ExtName      string       `json:"extName"`
	Size         *json.Number `json:"size"`
	CreateTime   *string      `json:"createTime"`
	UpdateTime   *string      `json:"updateTime"`
	FileMD5      string       `json:"fileMd5"`
}

type ResourcePage

type ResourcePage struct {
	CurrentPage    int        `json:"currentPage"`
	PageSize       int        `json:"pageSize"`
	TotalCount     int        `json:"totalCount"`
	TotalPageCount int        `json:"totalPageCount"`
	Data           []Resource `json:"data"`
	HasNext        bool       `json:"hasNext"`
}

type Response

type Response[T any] struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Data    T      `json:"data"`
}

type UploadInitData

type UploadInitData struct {
	Name         string `json:"name"`
	Size         int64  `json:"size"`
	Token        string `json:"token"`
	FileUID      string `json:"fileUid"`
	FileSID      string `json:"fileSid"`
	ParentID     string `json:"parentId"`
	UserID       int64  `json:"userId"`
	SerialNumber string `json:"serialNumber"`
	UploadURL    string `json:"uploadUrl"`
	AppID        string `json:"appId"`
}

type UserInfoData

type UserInfoData struct {
	RootDirID string `json:"rootDirId"`
}

Jump to

Keyboard shortcuts

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