tarlib

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcWhiteoutSize

func CalcWhiteoutSize(hdr *tar.Header, f fs.Filesystem, format archive.WhiteoutFormat) (bool, error)

CalcWhiteoutSize calculates the size taken by a possible whiteout file on the file system. It returns true if the given file was actually a whiteout file and false otherwise.

func CreateTarDisk

func CreateTarDisk(in io.Reader,
	f fs.Filesystem,
	options *archive.TarOptions,
	tmpdir string,
	disk *os.File) (uint64, error)

CreateTarDisk creates a file system image from the input tarstream with the given parameters and writes the image to the output file. It also returns the size of the image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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