template

package
v3.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

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"`
}

type Template

type Template struct {
	model.Storage
	Addition
}

func (*Template) Config

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

func (*Template) Copy

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

func (*Template) Drop

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

func (*Template) GetAddition

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

func (*Template) Init

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

func (*Template) List

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

func (*Template) MakeDir

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

func (*Template) Move

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

func (*Template) Put

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

func (*Template) Remove

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

func (*Template) Rename

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

Jump to

Keyboard shortcuts

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