Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
func NewSparseWriter ¶
func NewSparseWriter(file io.WriteSeeker) *sparseWriter
NewSparseWriter returns a WriteCloser for underlying file which creates holes where appropriate. NOTE: The caller must .Close() both the returned sparseWriter AND the underlying file, in that order.
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.