alias

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: AGPL-3.0 Imports: 19 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 {
	// 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"`
	ParallelWrite       bool   `json:"parallel_write" type:"bool" default:"false"`
	DownloadConcurrency int    `json:"download_concurrency" default:"0" required:"false" type:"number" help:"Need to enable proxy"`
	DownloadPartSize    int    `json:"download_part_size" default:"0" type:"number" required:"false" help:"Need to enable proxy. Unit: KB"`
	Writable            bool   `json:"writable" type:"bool" default:"false"`
	ProviderPassThrough bool   `json:"provider_pass_through" type:"bool" default:"false"`
	DetailsPassThrough  bool   `json:"details_pass_through" type:"bool" default:"false"`
}

type Alias

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

func (*Alias) ArchiveDecompress

func (d *Alias) ArchiveDecompress(ctx context.Context, srcObj, dstDir model.Obj, args model.ArchiveDecompressArgs) error

func (*Alias) Config

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

func (*Alias) Copy

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

func (*Alias) Drop

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

func (*Alias) Extract

func (d *Alias) Extract(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) (*model.Link, 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) GetArchiveMeta

func (d *Alias) GetArchiveMeta(ctx context.Context, obj model.Obj, args model.ArchiveArgs) (model.ArchiveMeta, error)

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) ListArchive

func (d *Alias) ListArchive(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) ([]model.Obj, error)

func (*Alias) MakeDir

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

func (*Alias) Move

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

func (*Alias) Other added in v4.1.3

func (d *Alias) Other(ctx context.Context, args model.OtherArgs) (interface{}, error)

func (*Alias) Put

func (*Alias) PutURL

func (d *Alias) PutURL(ctx context.Context, dstDir model.Obj, name, url string) 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

func (*Alias) ResolveLinkCacheMode added in v4.1.5

func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode

Jump to

Keyboard shortcuts

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