_115_open

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	// Usually one of two
	driver.RootID
	// define other
	OrderBy        string  `json:"order_by" type:"select" options:"file_name,file_size,user_utime,file_type"`
	OrderDirection string  `json:"order_direction" type:"select" options:"asc,desc"`
	LimitRate      float64 `json:"limit_rate" type:"float" default:"1" help:"limit all api request rate ([limit]r/1s)"`
	AccessToken    string  `json:"access_token" required:"true"`
	RefreshToken   string  `json:"refresh_token" required:"true"`
}

type Obj

func (*Obj) CreateTime

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

CreateTime implements model.Obj.

func (*Obj) GetHash

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

GetHash implements model.Obj.

func (*Obj) GetID

func (o *Obj) GetID() string

GetID implements model.Obj.

func (*Obj) GetName

func (o *Obj) GetName() string

GetName implements model.Obj.

func (*Obj) GetPath

func (o *Obj) GetPath() string

GetPath implements model.Obj.

func (*Obj) GetSize

func (o *Obj) GetSize() int64

GetSize implements model.Obj.

func (*Obj) IsDir

func (o *Obj) IsDir() bool

IsDir implements model.Obj.

func (*Obj) ModTime

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

ModTime implements model.Obj.

func (*Obj) Thumb

func (o *Obj) Thumb() string

Thumb implements model.Thumb.

type Open115

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

func (*Open115) Config

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

func (*Open115) Copy

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

func (*Open115) DeleteOfflineTask added in v4.0.9

func (d *Open115) DeleteOfflineTask(ctx context.Context, infoHash string, deleteFiles bool) error

func (*Open115) Drop

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

func (*Open115) GetAddition

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

func (*Open115) GetObjInfo added in v4.1.0

func (d *Open115) GetObjInfo(ctx context.Context, path string) (model.Obj, error)

func (*Open115) Init

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

func (*Open115) List

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

func (*Open115) MakeDir

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

func (*Open115) Move

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

func (*Open115) OfflineDownload added in v4.0.9

func (d *Open115) OfflineDownload(ctx context.Context, uris []string, dstDir model.Obj) ([]string, error)

func (*Open115) OfflineList added in v4.0.9

func (d *Open115) OfflineList(ctx context.Context) (*sdk.OfflineTaskListResp, error)

func (*Open115) Put

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

func (*Open115) Remove

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

func (*Open115) Rename

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

func (*Open115) WaitLimit

func (d *Open115) WaitLimit(ctx context.Context) error

Jump to

Keyboard shortcuts

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