local

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: AGPL-3.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() driver.Driver

Types

type Addition

type Addition struct {
	driver.RootPath
	Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"`
}

type Local

type Local struct {
	model.Storage
	Addition
}

func (*Local) Config

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

func (*Local) Copy

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

func (*Local) Drop

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

func (*Local) Get

func (d *Local) Get(ctx context.Context, path string) (model.Obj, error)

func (*Local) GetAddition

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

func (*Local) Init

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

func (*Local) List

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

func (*Local) MakeDir

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

func (*Local) Move

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

func (*Local) Put

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

func (*Local) Remove

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

func (*Local) Rename

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