template

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 10 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.RootID
	// define other
	RefreshToken string `json:"refresh_token" required:"true"`
	FamilyID     string `json:"family_id" help:"Keep it empty if you want to use your personal drive"`
	SortRule     string `json:"sort_rule" type:"select" options:"name_asc,name_desc,time_asc,time_desc,size_asc,size_desc" default:"name_asc"`

	AccessToken string `json:"access_token"`
}

type Object

type Object struct {
	model.ObjThumb
	FID string
}

type Wopan

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

func (*Wopan) Config

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

func (*Wopan) Copy

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

func (*Wopan) Drop

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

func (*Wopan) GetAddition

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

func (*Wopan) Init

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

func (*Wopan) List

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

func (*Wopan) MakeDir

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

func (*Wopan) Move

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

func (*Wopan) Put

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

func (*Wopan) Remove

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

func (*Wopan) Rename

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