Documentation ¶
Index ¶
- Variables
- func Gzip(source, targetPath, targetFilename string) error
- func GzipToFileIO(reader, target *os.File) (err error)
- func Tar(sources []string, targetPath, targetFilename string) error
- func TarToFileIO(sources []string, target *os.File) (err error)
- func TarToWriter(sources []string, target *tar.Writer) (err error)
- func Tgz(sources []string, targetPath, targetFilename string) error
- func TgzToFileIO(sources []string, target *os.File) (err error)
- func UnGzip(source, target string) error
- func UnGzipFromFileIO(reader, target *os.File) error
- func UnTar(tarball, target string) error
- func UnTarFromFileIO(tarball *os.File, target string) error
- func UnTarFromReader(reader *tar.Reader, target string) error
- func UnTgz(tarball, target string) error
- func UnTgzFromFileIO(tarball *os.File, target string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptySource = errors.New("empty source")
View Source
var ErrIsDir = errors.New("is dir")
Functions ¶
func Gzip ¶
Gzip source to targetPath/targetFilename. if targetFilename=="", targetFilename=sourceFilename.gz
func GzipToFileIO ¶
func Tar ¶
Tar sources to targetPath/targetFilename. if targetFilename=="", targetFilename=sources[0]Filename.tar
func Tgz ¶
Tgz sources to targetPath/targetFilename. if targetFilename=="", targetFilename=sources[0]Filename.tgz
func UnGzipFromFileIO ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.