alist_v3

package
v3.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AListV3

type AListV3 struct {
	model.Storage
	Addition
}

func (*AListV3) Config

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

func (*AListV3) Copy

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

func (*AListV3) Drop

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

func (*AListV3) GetAddition

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

func (*AListV3) Init

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

func (*AListV3) List

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

func (*AListV3) MakeDir

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

func (*AListV3) Move

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

func (*AListV3) Put

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

func (*AListV3) Remove

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

func (*AListV3) Rename

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

type Addition

type Addition struct {
	driver.RootPath
	Address      string `json:"url" required:"true"`
	MetaPassword string `json:"meta_password"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	Token        string `json:"token"`
}

type FsGetReq added in v3.5.1

type FsGetReq struct {
	Path     string `json:"path" form:"path"`
	Password string `json:"password" form:"password"`
}

type FsGetResp added in v3.5.1

type FsGetResp struct {
	ObjResp
	RawURL   string    `json:"raw_url"`
	Readme   string    `json:"readme"`
	Provider string    `json:"provider"`
	Related  []ObjResp `json:"related"`
}

type FsListResp added in v3.5.1

type FsListResp struct {
	Content  []ObjResp `json:"content"`
	Total    int64     `json:"total"`
	Readme   string    `json:"readme"`
	Write    bool      `json:"write"`
	Provider string    `json:"provider"`
}

type ListReq added in v3.5.1

type ListReq struct {
	model.PageReq
	Path     string `json:"path" form:"path"`
	Password string `json:"password" form:"password"`
	Refresh  bool   `json:"refresh"`
}

type LoginResp added in v3.16.1

type LoginResp struct {
	Token string `json:"token"`
}

type MeResp added in v3.16.1

type MeResp struct {
	Id         int    `json:"id"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	BasePath   string `json:"base_path"`
	Role       int    `json:"role"`
	Disabled   bool   `json:"disabled"`
	Permission int    `json:"permission"`
	SsoId      string `json:"sso_id"`
	Otp        bool   `json:"otp"`
}

type MkdirOrLinkReq added in v3.7.1

type MkdirOrLinkReq struct {
	Path string `json:"path" form:"path"`
}

type MoveCopyReq added in v3.7.1

type MoveCopyReq struct {
	SrcDir string   `json:"src_dir"`
	DstDir string   `json:"dst_dir"`
	Names  []string `json:"names"`
}

type ObjResp added in v3.5.1

type ObjResp struct {
	Name     string    `json:"name"`
	Size     int64     `json:"size"`
	IsDir    bool      `json:"is_dir"`
	Modified time.Time `json:"modified"`
	Sign     string    `json:"sign"`
	Thumb    string    `json:"thumb"`
	Type     int       `json:"type"`
}

type RemoveReq added in v3.7.1

type RemoveReq struct {
	Dir   string   `json:"dir"`
	Names []string `json:"names"`
}

type RenameReq added in v3.7.1

type RenameReq struct {
	Path string `json:"path"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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