Documentation
¶
Overview ¶
Package tar avoids third-party dependencies (ex archiver/v3) and are special-cased to the needs of func-e.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TarGz ¶
TarGz tars and gzips "src", rooted at the last directory, into the file named "dst" Ex If "src" includes "/tmp/envoy/bin" and "/tmp/build/bin". If "src" is "/tmp/envoy", "dst" includes "envoy/bin".
This is used to compress the working directory of Envoy after it is stopped.
func Untar ¶
Untar unarchives the compressed "src" which is either a "tar.xz" or "tar.gz" stream. This strips the base directory inside the "src" archive. Ex on "/foo/bar", "dst" will have "bar/**"
This is used to decompress Envoy distributions in the "tarballURL" field of "envoy-versions.json". To keep the binary size small, only supports compression formats used in practice. As of May 2021, all "tarballURL" from stable releases were "tar.xz".
Types ¶
This section is empty.