crush

package
v1.27.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 57

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTar added in v1.14.0

func CreateTar(destination io.Writer, source string) error

CreateTar writes a TAR to the destination io.Writer containing the directories and files in the source folder.

func CreateTarGz added in v1.14.0

func CreateTarGz(destination io.Writer, source string) error

CreateTarGz writes a GZIP'd TAR to the destination io.Writer containing the directories and files in the source folder.

func ExtractTar added in v1.14.0

func ExtractTar(source io.Reader, destination string, stripComponents int) error

ExtractTar extracts source TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

func ExtractTarBz2 added in v1.24.0

func ExtractTarBz2(source io.Reader, destination string, stripComponents int) error

ExtractTarBz2 extracts source BZIP2'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

func ExtractTarGz added in v1.14.0

func ExtractTarGz(source io.Reader, destination string, stripComponents int) error

ExtractTarGz extracts source GZIP'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

func ExtractTarXz added in v1.14.0

func ExtractTarXz(source io.Reader, destination string, stripComponents int) error

ExtractTarXz extracts source XZ'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

func ExtractZip added in v1.14.0

func ExtractZip(source *os.File, destination string, stripComponents int) error

ExtractZip extracts source ZIP file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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