baidu_share

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: 13 Imported by: 1

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.RootPath
	// driver.RootID
	// define other
	// Field string `json:"field" type:"select" required:"true" options:"a,b,c" default:"a"`
	Surl  string `json:"surl"`
	Pwd   string `json:"pwd"`
	BDUSS string `json:"BDUSS"`
}

type BaiduShare

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

func (*BaiduShare) Config

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

func (*BaiduShare) Copy

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

func (*BaiduShare) Drop

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

func (*BaiduShare) GetAddition

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

func (*BaiduShare) Init

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

func (*BaiduShare) List

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

func (*BaiduShare) MakeDir

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

func (*BaiduShare) Move

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

func (*BaiduShare) Put

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

func (*BaiduShare) Remove

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

func (*BaiduShare) Rename

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