Documentation ¶
Index ¶
- type Crush
- func (c *Crush) CreateTar(destination io.Writer, source string) error
- func (c *Crush) CreateTarGz(destination io.Writer, source string) error
- func (c *Crush) ExtractTar(source io.Reader, destination string, stripComponents int) error
- func (c *Crush) ExtractTarGz(source io.Reader, destination string, stripComponents int) error
- func (c *Crush) ExtractTarXz(source io.Reader, destination string, stripComponents int) error
- func (c *Crush) ExtractZip(source *os.File, destination string, stripComponents int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crush ¶
type Crush struct{}
func (*Crush) CreateTar ¶
CreateTar writes a TAR to the destination io.Writer containing the directories and files in the source folder.
func (*Crush) CreateTarGz ¶
CreateTarGz writes a GZIP'd TAR to the destination io.Writer containing the directories and files in the source folder.
func (*Crush) ExtractTar ¶
ExtractTar extracts source TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.
func (*Crush) ExtractTarGz ¶
ExtractTarGz extracts source GZIP'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.
func (*Crush) ExtractTarXz ¶
ExtractTarXz extracts source XZ'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.