alist_v2

package
v3.35.3-8Mi Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AListV2

type AListV2 struct {
	model.Storage
	Addition
}

func (*AListV2) Config

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

func (*AListV2) Copy

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

func (*AListV2) Drop

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

func (*AListV2) GetAddition

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

func (*AListV2) Init

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

func (*AListV2) List

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

func (*AListV2) MakeDir

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

func (*AListV2) Move

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

func (*AListV2) Put

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

func (*AListV2) Remove

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

func (*AListV2) Rename

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

type Addition

type Addition struct {
	driver.RootPath
	Address     string `json:"url" required:"true"`
	Password    string `json:"password"`
	AccessToken string `json:"access_token"`
}

type File

type File struct {
	Id        string     `json:"-"`
	Name      string     `json:"name"`
	Size      int64      `json:"size"`
	Type      int        `json:"type"`
	Driver    string     `json:"driver"`
	UpdatedAt *time.Time `json:"updated_at"`
	Thumbnail string     `json:"thumbnail"`
	Url       string     `json:"url"`
	SizeStr   string     `json:"size_str"`
	TimeStr   string     `json:"time_str"`
}

type PathReq

type PathReq struct {
	PageNum  int    `json:"page_num"`
	PageSize int    `json:"page_size"`
	Password string `json:"password"`
	Path     string `json:"path"`
}

type PathResp

type PathResp struct {
	Type string `json:"type"`
	//Meta  Meta         `json:"meta"`
	Files []File `json:"files"`
}

Jump to

Keyboard shortcuts

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