_115

package
v3.22.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = driver.UA115Desktop

Functions

This section is empty.

Types

type Addition

type Addition struct {
	Cookie      string `json:"cookie" type:"text" help:"one of QR code token and cookie required"`
	QRCodeToken string `json:"qrcode_token" type:"text" help:"one of QR code token and cookie required"`
	PageSize    int64  `json:"page_size" type:"number" default:"56" help:"list api per page size of 115 driver"`
	driver.RootID
}

type Pan115

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

func (*Pan115) Config

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

func (*Pan115) Copy

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

func (*Pan115) Drop

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

func (*Pan115) GetAddition

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

func (*Pan115) Init

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

func (*Pan115) List

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

func (*Pan115) MakeDir

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

func (*Pan115) Move

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

func (*Pan115) Put

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

func (*Pan115) Remove

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

func (*Pan115) Rename

func (d *Pan115) 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