strm

package
v3.58.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaveLocalInsertMode = "insert"
	SaveLocalUpdateMode = "update"
	SaveLocalSyncMode   = "sync"
)

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 generated strm file"`
	PathPrefix        string `json:"PathPrefix" type:"text" required:"false" default:"/d" help:"Path prefix in strm content"`
	DownloadFileTypes string `` /* 129-byte string literal not displayed */
	FilterFileTypes   string `` /* 165-byte string literal not displayed */
	EncodePath        bool   `json:"encodePath" default:"true" required:"true" help:"Encode path in strm content"`
	WithoutUrl        bool   `json:"withoutUrl" default:"false" help:"Generate path-only strm content"`
	WithSign          bool   `json:"withSign" default:"false" help:"Append sign query to generated URL"`
	SignExpireHours   int    `json:"SignExpireHours" type:"number" default:"0" help:"Driver-level sign expiration in hours. 0 uses global link_expiration"`
	RotateSignNow     bool   `` /* 140-byte string literal not displayed */
	SaveStrmToLocal   bool   `json:"SaveStrmToLocal" default:"false" help:"Save generated files to local disk"`
	SaveStrmLocalPath string `json:"SaveStrmLocalPath" type:"text" help:"Local path for generated files"`
	SaveLocalMode     string `json:"SaveLocalMode" type:"select" help:"Local save mode" options:"insert,update,sync" default:"insert"`
	Version           int
}

func (Addition) GetRootPath

func (Addition) GetRootPath() string

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