recovery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(
	reader config.DriveReaderConfig,
	mt config.MagneticTapeIO,
	pipes config.PipeConfig,
	crypto config.CryptoConfig,

	getDst func(path string, mode fs.FileMode) (io.WriteCloser, error),
	mkdirAll func(path string, mode fs.FileMode) error,

	record int,
	block int,
	to string,
	preview bool,

	onHeader func(hdr *config.Header),
) error

func Index

func Index(
	reader config.DriveReaderConfig,
	mt config.MagneticTapeIO,
	metadata config.MetadataConfig,
	pipes config.PipeConfig,
	crypto config.CryptoConfig,

	record int,
	block int,
	overwrite bool,
	initializing bool,
	offset int,

	decryptHeader func(
		hdr *tar.Header,
		i int,
	) error,
	verifyHeader func(
		hdr *tar.Header,
		isRegular bool,
	) error,

	onHeader func(hdr *config.Header),
) error

func Query

func Query(
	reader config.DriveReaderConfig,
	mt config.MagneticTapeIO,
	pipes config.PipeConfig,
	crypto config.CryptoConfig,

	record int,
	block int,

	onHeader func(hdr *config.Header),
) ([]*tar.Header, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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