template

package
v3.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultPartSize = 1024 * 1024 * 8

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	driver.RootID
	Username string `json:"username" type:"string" required:"true"`
	Password string `json:"password" type:"string" required:"true"`

	Token string
	UUID  string
}

type Conf added in v3.31.0

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

type ILanZou

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

func (*ILanZou) Config

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

func (*ILanZou) Copy

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

func (*ILanZou) Drop

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

func (*ILanZou) GetAddition

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

func (*ILanZou) Init

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

func (*ILanZou) List

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

func (*ILanZou) MakeDir

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

func (*ILanZou) Move

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

func (*ILanZou) Put

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

func (*ILanZou) Remove

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

func (*ILanZou) Rename

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

type ListItem

type ListItem struct {
	IconId         int         `json:"iconId"`
	IsAmt          int         `json:"isAmt"`
	FolderDesc     string      `json:"folderDesc,omitempty"`
	AddTime        string      `json:"addTime"`
	FolderId       int64       `json:"folderId"`
	ParentId       int64       `json:"parentId"`
	ParentName     string      `json:"parentName"`
	NoteType       int         `json:"noteType,omitempty"`
	UpdTime        string      `json:"updTime"`
	IsShare        int         `json:"isShare"`
	FolderIcon     string      `json:"folderIcon,omitempty"`
	FolderName     string      `json:"folderName,omitempty"`
	FileType       int         `json:"fileType"`
	Status         int         `json:"status"`
	IsFileShare    int         `json:"isFileShare,omitempty"`
	FileName       string      `json:"fileName,omitempty"`
	FileStars      float64     `json:"fileStars,omitempty"`
	IsFileDownload int         `json:"isFileDownload,omitempty"`
	FileComments   int         `json:"fileComments,omitempty"`
	FileSize       int64       `json:"fileSize,omitempty"`
	FileIcon       string      `json:"fileIcon,omitempty"`
	FileDownloads  int         `json:"fileDownloads,omitempty"`
	FileUrl        interface{} `json:"fileUrl"`
	FileLikes      int         `json:"fileLikes,omitempty"`
	FileId         int64       `json:"fileId,omitempty"`
}

type ListResp

type ListResp struct {
	Msg       string     `json:"msg"`
	Total     int        `json:"total"`
	Code      int        `json:"code"`
	Offset    int        `json:"offset"`
	TotalPage int        `json:"totalPage"`
	Limit     int        `json:"limit"`
	List      []ListItem `json:"list"`
}

type Part

type Part struct {
	PartNumber int    `json:"partNumber"`
	ETag       string `json:"etag"`
}

type UploadResultResp

type UploadResultResp struct {
	Msg  string `json:"msg"`
	Code int    `json:"code"`
	List []struct {
		FileIconId int    `json:"fileIconId"`
		FileName   string `json:"fileName"`
		FileIcon   string `json:"fileIcon"`
		FileId     int64  `json:"fileId"`
		Status     int    `json:"status"`
		Token      string `json:"token"`
	} `json:"list"`
}

Jump to

Keyboard shortcuts

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