tarball

package
v0.9.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tarball

type Tarball struct {
	// Path is the filesystem path of the tarball file.
	Path string
	// Compression should be "" for plain .tar files, "z" for gzipped files, "j" for bzip2'ed files.
	Compression string
}

func (*Tarball) Check

func (t *Tarball) Check() error

Check returns error if `tar t` fails, and no error otherwise.

func (*Tarball) Unpack

func (t *Tarball) Unpack(destDir string) error

Jump to

Keyboard shortcuts

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