wps

package
v4.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

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
	Cookie string `json:"cookie" required:"true" type:"text"`
	Mode   string `json:"mode" type:"select" options:"Personal,Business" default:"Business"`
}

type FileInfo

type FileInfo struct {
	GroupID   int64     `json:"groupid"`
	ParentID  int64     `json:"parentid"`
	Name      string    `json:"fname"`
	Size      int64     `json:"fsize"`
	Type      string    `json:"ftype"`
	Ctime     int64     `json:"ctime"`
	Mtime     int64     `json:"mtime"`
	ID        int64     `json:"id"`
	Deleted   bool      `json:"deleted"`
	FilePerms filePerms `json:"file_perms_acl"`
}

type Group

type Group struct {
	CompanyID int64  `json:"company_id"`
	GroupID   int64  `json:"group_id"`
	Name      string `json:"name"`
	Type      string `json:"type"`
}

type Obj

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

func (*Obj) CreateTime

func (o *Obj) CreateTime() time.Time

func (*Obj) GetHash

func (o *Obj) GetHash() utils.HashInfo

func (*Obj) GetID

func (o *Obj) GetID() string

func (*Obj) GetName

func (o *Obj) GetName() string

func (*Obj) GetPath

func (o *Obj) GetPath() string

func (*Obj) GetSize

func (o *Obj) GetSize() int64

func (*Obj) IsDir

func (o *Obj) IsDir() bool

func (*Obj) ModTime

func (o *Obj) ModTime() time.Time

type Wps

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

func (*Wps) Config

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

func (*Wps) Copy

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

func (*Wps) Drop

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

func (*Wps) GetAddition

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

func (*Wps) GetDetails added in v4.1.10

func (d *Wps) GetDetails(ctx context.Context) (*model.StorageDetails, error)

func (*Wps) Init

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

func (*Wps) List

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

func (*Wps) MakeDir

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

func (*Wps) Move

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

func (*Wps) Put

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

func (*Wps) Remove

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

func (*Wps) Rename

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

Jump to

Keyboard shortcuts

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