Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarGz ¶
CreateTarGz packs a directory into a gzipped archive.
Written to a temporary file and renamed, so an interrupted repack cannot leave a truncated bundle where the container expects a valid one.
func CreateTarGzFiles ¶
CreateTarGzFiles packs the named files, relative to directory, into a gzipped archive.
Only the listed files are packed, and no directory entries are written -- `tar.create(..., files)` with an explicit list behaves the same way, and the build unpacks with the parents created on demand. Symlinks are resolved and stored as the file they point at, matching node-tar's `follow: true`, so a function sharing code through a link deploys the code rather than a dangling link.
The archive is streamed to disk one file at a time. Nothing accumulates in memory, which is what keeps a large site's peak RSS flat -- see the note on deploy.Upload.
func ExtractTarGz ¶
ExtractTarGz unpacks an archive into a directory.
Types ¶
This section is empty.