Documentation ¶
Index ¶
- func CreateTar(destination io.Writer, source string) error
- func CreateTarGz(destination io.Writer, source string) error
- func ExtractTar(source io.Reader, destination string, stripComponents int) error
- func ExtractTarBz2(source io.Reader, destination string, stripComponents int) error
- func ExtractTarGz(source io.Reader, destination string, stripComponents int) error
- func ExtractTarXz(source io.Reader, destination string, stripComponents int) error
- func ExtractZip(source *os.File, destination string, stripComponents int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTar ¶ added in v1.14.0
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
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
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
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
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
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.
Types ¶
This section is empty.