compression

package
v5.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decompress

func Decompress(compressedVMFile *define.VMFile, decompressedFilePath string) error

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
}

Jump to

Keyboard shortcuts

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