tar

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2017 License: Apache-2.0 Imports: 15 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(ctx context.Context, source, target string, ignoreList []string, logger *logger.Logger) (string, string, error)

Archive archives the source into target, ignoring the list of patterns supplied in the string array.

func SumReader added in v0.3.3

func SumReader(reader io.Reader) (string, error)

SumReader sums an io.Reader

func SumWithCopy added in v0.3.3

func SumWithCopy(writer io.WriteCloser, reader io.Reader, logger *logger.Logger, fileType string) (string, error)

SumWithCopy simultaneously sums and copies a stream.

func Unarchive added in v0.4.2

func Unarchive(reader io.Reader, dest string) error

Unarchive unpacks the reader into the destination directory. An error is yielded if this operation cannot occur or failed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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