Documentation
¶
Index ¶
- func DownloadAndExtractTarball(url string, removeTopLevel bool) (string, func(), error)
- func ExtractTarballWithCleanup(tarball string, removeTopLevel bool) (string, func(), error)
- func Tar(src string, tarballFilePath string, exclusion string) error
- func Ungzip(source string, destDirectory string) error
- func Untar(source string, dest string, extractionDir string) error
- func Unzip(source string, dest string, extractionDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndExtractTarball ¶ added in v1.19.0
DownloadAndExtractTarball takes an url to a tar.gz file and extracts into a new a temp directory and the directory and a cleanup function. It's the caller's responsibility to call the cleanup function.
func ExtractTarballWithCleanup ¶ added in v1.19.0
ExtractTarballWithCleanup takes a tarball file and extracts it into a temp directory Caller is responsible for cleanup of the temp directory using the returned cleanup function. If removeTopLevel is true, the top level directory will be removed.
func Tar ¶ added in v1.16.0
Tar takes a source dir and tarballFilePath and a single exclusion path It creates a gzipped tarball. So sorry that exclusion is a single relative path. It should be a set of patterns, rfay 2021-12-15
func Ungzip ¶
Ungzip accepts a gzipped file and uncompresses it to the provided destination directory.
Types ¶
This section is empty.