Documentation ¶
Index ¶
- func CreateTar(tarFile io.Writer, files []string) error
- func CreateTarFilter(tarFile io.Writer, files []string, filters []Filter) error
- func ExtractDir(tarFile io.Reader, dir string) error
- func ExtractDirFilter(tarFile io.Reader, dir string, filters []Filter) error
- func ListArchive(tarFile io.Reader) error
- func NoFilter(hdr *tar.Header) bool
- func SafeFilter(hdr *tar.Header) bool
- func VerboseFilter(hdr *tar.Header) bool
- func VerboseLogFilter(hdr *tar.Header) bool
- type Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarFilter ¶
CreateTarFilter creates a new tar file of the given files, with the given filter.
func ExtractDir ¶
ExtractDir extracts all the contents of the tar file to the given directory.
func ExtractDirFilter ¶
ExtractDirFilter extracts a tar file with the given filter.
func ListArchive ¶
ListArchive lists the contents of the given tar archive.
func SafeFilter ¶
SafeFilter filters out all files which are not regular and not directories. It also sets sane permissions.
func VerboseFilter ¶
VerboseFilter prints the name of every file.
func VerboseLogFilter ¶
VerboseLogFilter logs the name of every file.
Types ¶
Click to show internal directories.
Click to hide internal directories.