Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress is a generic wrapper for various decompression algos TODO this needs some love. in the various decompression functions that are called, the same uncompressed path is being opened multiple times.
func NewSparseWriter ¶
func NewSparseWriter(file WriteSeekCloser) *sparseWriter
Types ¶
type ImageCompression ¶
type ImageCompression int64
const ( Xz ImageCompression = iota Zip Gz Bz2 Zstd )
func KindFromFile ¶
func KindFromFile(path string) ImageCompression
func (ImageCompression) String ¶
func (c ImageCompression) String() string
type WriteSeekCloser ¶
type WriteSeekCloser interface { io.Closer io.WriteSeeker }
Click to show internal directories.
Click to hide internal directories.