strm

package
v4.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: AGPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertStrm added in v4.1.6

func InsertStrm(dstPath string, d *Strm) error

func RemoveStrm added in v4.1.6

func RemoveStrm(dstPath string, d *Strm)

func UpdateLocalStrm added in v4.1.6

func UpdateLocalStrm(ctx context.Context, path string, objs []model.Obj)

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"`
	DownloadFileTypes string `` /* 143-byte string literal not displayed */
	FilterFileTypes   string `` /* 169-byte string literal not displayed */
	EncodePath        bool   `json:"encodePath" default:"true" required:"true" help:"encode the path in the strm file"`
	WithoutUrl        bool   `json:"withoutUrl" default:"false" help:"strm file content without URL prefix"`
	SaveStrmToLocal   bool   `json:"SaveStrmToLocal" default:"false" help:"save strm file locally"`
	SaveStrmLocalPath string `json:"SaveStrmLocalPath" type:"text" help:"save strm file local path"`
	Version           int
}

type Strm

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

func (*Strm) Config

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

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)

Jump to

Keyboard shortcuts

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