tar

package
Version: v0.0.0-...-67d9101 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

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

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

SumReader sums an io.Reader

func SumWithCopy

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

SumWithCopy simultaneously sums and copies a stream.

func Unarchive

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL