strm

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: AGPL-3.0 Imports: 13 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 {
	Paths           string `json:"paths" required:"true" type:"text"`
	SiteUrl         string `json:"siteUrl" type:"text" required:"false" help:"The prefix URL of the strm file"`
	FilterFileTypes string `json:"filterFileTypes" type:"text" default:"strm" required:"false" help:"Supports suffix name of strm file"`
	EncodePath      bool   `json:"encodePath" default:"true" required:"true" help:"encode the path in the strm file"`
	LocalModel      bool   `json:"localModel" default:"false" help:"enable local mode"`
}

type Strm

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

func (*Strm) Config

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

func (*Strm) Copy

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

func (*Strm) Drop

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

func (*Strm) Get

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

func (*Strm) GetAddition

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

func (*Strm) Init

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

func (*Strm) List

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

func (*Strm) MakeDir

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

func (*Strm) Move

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

func (*Strm) Put

func (*Strm) Remove

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

func (*Strm) Rename

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