alias

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 13 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
	// define other
	Paths           string `json:"paths" required:"true" type:"text"`
	ProtectSameName bool   `json:"protect_same_name" default:"true" required:"false" help:"Protects same-name files from Delete or Rename"`
}

type Alias

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

func (*Alias) Config

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

func (*Alias) Drop

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

func (*Alias) Get

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

func (*Alias) GetAddition

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

func (*Alias) Init

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

func (*Alias) List

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

func (*Alias) Remove

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

func (*Alias) Rename

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