openlist_share

package
v4.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: AGPL-3.0 Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	driver.RootPath
	Address           string `json:"url" required:"true"`
	ShareId           string `json:"sid" required:"true"`
	Pwd               string `json:"pwd"`
	ForwardArchiveReq bool   `json:"forward_archive_requests" default:"true"`
}

type ArchiveListReq

type ArchiveListReq struct {
	model.PageReq
	ArchiveMetaReq
	InnerPath string `json:"inner_path"`
}

type ArchiveListResp

type ArchiveListResp struct {
	Content []ObjResp `json:"content"`
	Total   int64     `json:"total"`
}

type ArchiveMetaReq

type ArchiveMetaReq struct {
	ArchivePass string `json:"archive_pass"`
	Password    string `json:"password"`
	Path        string `json:"path"`
	Refresh     bool   `json:"refresh"`
}

type ArchiveMetaResp

type ArchiveMetaResp struct {
	Comment   string     `json:"comment"`
	Encrypted bool       `json:"encrypted"`
	Content   []TreeResp `json:"content"`
	RawURL    string     `json:"raw_url"`
	Sign      string     `json:"sign"`
}

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 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 OpenListShare

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

func (*OpenListShare) Config

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

func (*OpenListShare) Drop

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

func (*OpenListShare) Extract

func (d *OpenListShare) Extract(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) (*model.Link, error)

func (*OpenListShare) GetAddition

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

func (*OpenListShare) GetArchiveMeta

func (d *OpenListShare) GetArchiveMeta(ctx context.Context, obj model.Obj, args model.ArchiveArgs) (model.ArchiveMeta, error)

func (*OpenListShare) Init

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

func (*OpenListShare) List

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

func (*OpenListShare) ListArchive

func (d *OpenListShare) ListArchive(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) ([]model.Obj, error)

type TreeResp

type TreeResp struct {
	ObjResp
	Children []TreeResp `json:"children"`
	// contains filtered or unexported fields
}

func (*TreeResp) CreateTime

func (t *TreeResp) CreateTime() time.Time

func (*TreeResp) GetChildren

func (t *TreeResp) GetChildren() []model.ObjTree

func (*TreeResp) GetHash

func (t *TreeResp) GetHash() utils.HashInfo

func (*TreeResp) GetID

func (t *TreeResp) GetID() string

func (*TreeResp) GetName

func (t *TreeResp) GetName() string

func (*TreeResp) GetPath

func (t *TreeResp) GetPath() string

func (*TreeResp) GetSize

func (t *TreeResp) GetSize() int64

func (*TreeResp) IsDir

func (t *TreeResp) IsDir() bool

func (*TreeResp) ModTime

func (t *TreeResp) ModTime() time.Time

func (*TreeResp) Thumb

func (t *TreeResp) Thumb() string

Jump to

Keyboard shortcuts

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