package tarlib
import "github.com/Microsoft/opengcs/service/gcsutils/tarlib"
Index ¶
- func CalcWhiteoutSize(hdr *tar.Header, f fs.Filesystem, format archive.WhiteoutFormat) (bool, error)
- func CreateTarDisk(in io.Reader, f fs.Filesystem, options *archive.TarOptions, tmpdir string, disk *os.File) (uint64, error)
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.
Source Files ¶
- Version
- v0.3.3
- Published
- Sep 6, 2017
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 4 hours ago –
Tools for package owners.