streamtape

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: 17 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 {
	driver.RootID
	APILogin           string `json:"api_login" required:"true" help:"API Login from Streamtape account settings"`
	APIKey             string `json:"api_key" required:"true" help:"API Key from Streamtape account settings"`
	RangeMode          string `` /* 199-byte string literal not displayed */
	RangeChunkMB       int    `json:"range_chunk_mb" type:"number" default:"8" help:"Chunk mode part size in MB"`
	RangeConcurrency   int    `json:"range_concurrency" type:"number" default:"4" help:"Chunk mode concurrent upstream requests"`
	RangePercent       int    `json:"range_percent" type:"number" default:"15" help:"Percent mode part size percentage (1-100)"`
	EnableRangeControl bool   `json:"enable_range_control" default:"true" help:"Enable driver-level range shaping for smoother streaming"`
}

type Streamtape

type Streamtape struct {
	model.Storage
	Addition
}

func (*Streamtape) ArchiveDecompress

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

func (*Streamtape) Config

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

func (*Streamtape) Copy

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

func (*Streamtape) Drop

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

func (*Streamtape) Extract

func (d *Streamtape) Extract(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) (*model.Link, error)

func (*Streamtape) GetAddition

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

func (*Streamtape) GetArchiveMeta

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

func (*Streamtape) Init

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

func (*Streamtape) List

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

func (*Streamtape) ListArchive

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

func (*Streamtape) MakeDir

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

func (*Streamtape) Move

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

func (*Streamtape) Put

func (*Streamtape) Remove

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

func (*Streamtape) Rename

func (d *Streamtape) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)

Jump to

Keyboard shortcuts

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