_115_share

package
v3.35.3-8Mi Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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"`
	QRCodeSource string  `` /* 145-byte string literal not displayed */
	PageSize     int64   `json:"page_size" type:"number" default:"20" help:"list api per page size of 115 driver"`
	LimitRate    float64 `json:"limit_rate" type:"number" default:"2" help:"limit all api request rate (1r/[limit_rate]s)"`
	ShareCode    string  `json:"share_code" type:"text" required:"true" help:"share code of 115 share link"`
	ReceiveCode  string  `json:"receive_code" type:"text" required:"true" help:"receive code of 115 share link"`
	driver.RootID
}

type FileObj

type FileObj struct {
	Size     int64
	Sha1     string
	Utm      time.Time
	FileName string

	FileID string
	// contains filtered or unexported fields
}

func (*FileObj) CreateTime

func (f *FileObj) CreateTime() time.Time

func (*FileObj) GetHash

func (f *FileObj) GetHash() utils.HashInfo

func (*FileObj) GetID

func (f *FileObj) GetID() string

func (*FileObj) GetName

func (f *FileObj) GetName() string

func (*FileObj) GetPath

func (f *FileObj) GetPath() string

func (*FileObj) GetSize

func (f *FileObj) GetSize() int64

func (*FileObj) IsDir

func (f *FileObj) IsDir() bool

func (*FileObj) ModTime

func (f *FileObj) ModTime() time.Time

type Pan115Share

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

func (*Pan115Share) Config

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

func (*Pan115Share) Copy

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

func (*Pan115Share) Drop

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

func (*Pan115Share) GetAddition

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

func (*Pan115Share) Init

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

func (*Pan115Share) List

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

func (*Pan115Share) MakeDir

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

func (*Pan115Share) Move

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

func (*Pan115Share) Put

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

func (*Pan115Share) Remove

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

func (*Pan115Share) Rename

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

func (*Pan115Share) WaitLimit

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

Jump to

Keyboard shortcuts

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