allocator

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator struct {
	Files       []File
	HasExisting bool
	HasMissing  bool
	Error       error
	// contains filtered or unexported fields
}

Allocator allocates files on the disk.

func New

func New() *Allocator

New returns a new Allocator.

func (*Allocator) Close

func (a *Allocator) Close()

Close the Allocator.

func (*Allocator) Run

func (a *Allocator) Run(info *metainfo.Info, sto storage.Storage, progressC chan Progress, resultC chan *Allocator)

Run the Allocator.

type File added in v0.7.0

type File struct {
	Storage storage.File
	Name    string
	Padding bool
}

File on the disk.

type Progress

type Progress struct {
	AllocatedSize int64
}

Progress about the allocation.

Jump to

Keyboard shortcuts

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