uss

package
v3.34.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 11 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 {
	driver.RootPath
	Bucket              string `json:"bucket" required:"true"`
	Endpoint            string `json:"endpoint" required:"true"`
	OperatorName        string `json:"operator_name" required:"true"`
	OperatorPassword    string `json:"operator_password" required:"true"`
	AntiTheftChainToken string `json:"anti_theft_chain_token" required:"false" default:""`
	//CustomHost       string `json:"custom_host"`	//Endpoint与CustomHost作用相同,去除
	SignURLExpire int `json:"sign_url_expire" type:"number" default:"4"`
}

type USS

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

func (*USS) Config

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

func (*USS) Copy

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

func (*USS) Drop

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

func (*USS) GetAddition

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

func (*USS) Init

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

func (*USS) List

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

func (*USS) MakeDir

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

func (*USS) Move

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

func (*USS) Put

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

func (*USS) Remove

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

func (*USS) Rename

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