crush

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crush

type Crush struct{}

func (*Crush) CreateTar

func (c *Crush) CreateTar(destination io.Writer, source string) error

CreateTar writes a TAR to the destination io.Writer containing the directories and files in the source folder.

func (*Crush) CreateTarGz

func (c *Crush) CreateTarGz(destination io.Writer, source string) error

CreateTarGz writes a GZIP'd TAR to the destination io.Writer containing the directories and files in the source folder.

func (*Crush) ExtractTar

func (c *Crush) ExtractTar(source io.Reader, destination string, stripComponents int) error

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

func (c *Crush) ExtractTarGz(source io.Reader, destination string, stripComponents int) error

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

func (c *Crush) ExtractTarXz(source io.Reader, destination string, stripComponents int) error

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.

func (*Crush) ExtractZip

func (c *Crush) ExtractZip(source *os.File, destination string, stripComponents int) error

ExtractZip extracts source ZIP file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL