chunker

package
v3.60.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: AGPL-3.0 Imports: 24 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 {
	RemotePath           string `` /* 139-byte string literal not displayed */
	RemotePaths          string `` /* 165-byte string literal not displayed */
	StoreChunksInPrimary bool   `` /* 142-byte string literal not displayed */
	ChunkSize            int64  `json:"chunk_size" type:"number" required:"true" default:"2147483648" help:"Files larger than this will be split into chunks"`
	NameFormat           string `` /* 166-byte string literal not displayed */
	StartFrom            int    `json:"start_from" type:"number" required:"true" default:"1" help:"Chunk number base, usually 0 or 1"`
	MetaFormat           string `` /* 156-byte string literal not displayed */
	HashType             string `` /* 133-byte string literal not displayed */
}

type Chunker

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

func (*Chunker) Config

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

func (*Chunker) Copy

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

func (*Chunker) Drop

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

func (*Chunker) Get

func (d *Chunker) Get(ctx context.Context, pathStr string) (model.Obj, error)

func (*Chunker) GetAddition

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

func (*Chunker) Init

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

func (*Chunker) List

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

func (*Chunker) MakeDir

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

func (*Chunker) Move

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

func (*Chunker) Put

func (d *Chunker) Put(ctx context.Context, dstDir model.Obj, streamer model.FileStreamer, up driver.UpdateProgress) error

func (*Chunker) Remove

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

func (*Chunker) Rename

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

type Object

type Object struct {
	model.Object
	Main            model.Obj
	MainRemoteIndex int
	Parts           []chunkPart
	Meta            *chunkMetadata
	Chunked         bool
	UsesMeta        bool
}

Jump to

Keyboard shortcuts

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