tar

package
v0.0.0-...-b690050 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromPathToWriter

func CreateFromPathToWriter(source string, compress io.Writer) (err error)

CreateFromPathToWriter provides a common way to archive and compress. It opens the file at source and writes the archive to the compress writer.

func CreateToPath

func CreateToPath(source, target string) error

CreateToPath uses the contents at the source path and creates a new archive at the target path.

func CreateToWriter

func CreateToWriter(source string, target io.Writer) (err error)

CreateToWriter creates a new tar archive in the target writer. The output is written to the writer that is passed.

func ExtractFromReader

func ExtractFromReader(source io.Reader, target string) (err error)

ExtractFromReader takes a source reader and a target to extract to.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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