alist_v3

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: 16 Imported by: 0

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"`
	PassUAToUpsteam bool   `json:"pass_ua_to_upsteam" default:"true"`
}

type FsGetReq

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

type FsGetResp

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

type FsListResp

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

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

type LoginResp

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

type MeResp

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

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

type MoveCopyReq

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

type ObjResp

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

type RemoveReq

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

type RenameReq

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