Documentation ¶
Index ¶
- func GzipTarFolder(sourceFolder, dstFile string) error
- func Tar(source Walker, dst io.Writer) error
- func TarFolder(sourceFolder, dstFile string) error
- func UnGzipTarFile(tarFile, dstFolder string) error
- func Untar(source io.Reader, router Router) error
- func UntarFile(tarFile, dstFolder string) error
- type FolderRouter
- type FolderWalker
- type GzipPackager
- type Packager
- type Router
- type TarFunc
- type Walker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GzipTarFolder ¶
func UnGzipTarFile ¶
Types ¶
type FolderRouter ¶
type FolderRouter struct {
// contains filtered or unexported fields
}
func NewFolderRouter ¶
func NewFolderRouter(folder string) FolderRouter
func (FolderRouter) ExtractPath ¶
func (f FolderRouter) ExtractPath(header *tar.Header) string
type FolderWalker ¶
type FolderWalker struct {
// contains filtered or unexported fields
}
func NewFolderWalker ¶
func NewFolderWalker(folder string) FolderWalker
func (FolderWalker) Walk ¶
func (f FolderWalker) Walk(fn TarFunc) error
type GzipPackager ¶
type GzipPackager struct{}
func NewGzipPackager ¶
func NewGzipPackager() GzipPackager
func (GzipPackager) Package ¶
func (GzipPackager) Package(sourceFolder, dstFile string) error
func (GzipPackager) UnPackage ¶
func (GzipPackager) UnPackage(orgFile, dstFolder string) error
Click to show internal directories.
Click to hide internal directories.