Documentation ¶
Index ¶
- func ExtractTarGz(r io.Reader, outputDirPath string) error
- func NewTarFileInBuffer() *tarFileInBuffer
- func TarFileInBuffer(fileContent []byte, fileName string, mode int64) ([]byte, error)
- func TarGzDir(absolutePath string) (string, error)
- func UnzipArchive(archiveData []byte, dest string) error
- func UnzipFile(src string, dest string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTarGz ¶
ExtractTarGz reads a .tar.gz archive from the reader and extracts it into outputDirPath directory
func NewTarFileInBuffer ¶
func NewTarFileInBuffer() *tarFileInBuffer
func TarFileInBuffer ¶
TarFileInBuffer will create a tar archive containing a single file named via fileName and using the content specified in fileContent. Returns the archive as a byte array.
func TarGzDir ¶
TarGzDir creates a tar.gz archive and returns it's path. abosolutePath should be an absolute path to a directory. Archive name will be <directoryName>.tar.gz and will be placed next to the directory.
func UnzipArchive ¶
UnzipArchive will unzip an archive from bytes into the dest destination folder on disk
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.