compression

package
v5.0.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func CopyFileSparse

func CopyFileSparse(src, dst string) error

func CopySparse

func CopySparse(dst io.WriteSeeker, src io.Reader) (int64, error)

func Decompress

func Decompress(localPath *define.VMFile, uncompressedPath string) error

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.

Types

type ImageCompression

type ImageCompression int64
const (
	Xz ImageCompression = iota
	Zip
	Gz
	Bz2
)

func KindFromFile

func KindFromFile(path string) ImageCompression

func (ImageCompression) String

func (c ImageCompression) String() string

Jump to

Keyboard shortcuts

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