Documentation
¶
Overview ¶
Package archive provides helpers for extracting and creating archive files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarGz ¶ added in v0.1.0
CreateTarGz creates a .tar.gz archive from srcDir. Each entry is stored under rootName as the archive root (no leading slash); pass an empty string to use srcDir's relative paths as-is. The filter function receives a slash-separated path relative to srcDir and returns false to exclude that entry (and, for directories, their entire subtree).
func ExtractTarGz ¶
ExtractTarGz extracts a .tar.gz archive into destDir. Path traversal entries are rejected.
func ExtractZip ¶
ExtractZip extracts the zip archive at src into installDir. Path traversal entries are rejected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.