pkgarchive

package
v0.0.0-...-15a92f0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	Compress(dirPath string) (io.ReadCloser, error)
	Decompress(reader io.Reader, dirPath string) error
}

Archiver compresses and decompresses a directory.

func NewTarArchiver

func NewTarArchiver(opts ArchiverOptions) Archiver

NewTarArchiver returns a new Archiver for tar.

type ArchiverOptions

type ArchiverOptions struct {
	// If not set, no files are excluded.
	ExcludePatternsFiles []string
}

ArchiverOptions are options to the construction of a Archiver.

Jump to

Keyboard shortcuts

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