archiver

package
v0.0.0-...-4e386bd Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver struct{}

Archiver is a targz archiver.

func New

func New() *Archiver

New creates an instance of Archiver.

func (Archiver) Archive

func (a Archiver) Archive(src string, w io.Writer) error

Archive archives a directory to a writer.

func (Archiver) Unarchive

func (a Archiver) Unarchive(r io.Reader, dest string) error

Unarchive unarchives a reader to a directory

func (Archiver) UnarchivePath

func (a Archiver) UnarchivePath(src string, dest string) error

UnarchivePath unarchives a targz file to a directory.

Jump to

Keyboard shortcuts

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