zstd

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

Archive implements archive for zstd.

func New

func New(logger log.Logger, root string, skipSymlinks bool, compressionLevel int) *Archive

New creates an archive that uses the .tar.zst file format.

func (*Archive) Create

func (a *Archive) Create(srcs []string, w io.Writer) (int64, error)

Create writes content of the given source to an archive, returns written bytes.

func (*Archive) Extract

func (a *Archive) Extract(dst string, r io.Reader) (int64, error)

Extract reads content from the given archive reader and restores it to the destination, returns written bytes.

Jump to

Keyboard shortcuts

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