archive

package
v0.0.0-...-50ffc52 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Extract(dst string) error
}

func NewTar

func NewTar(r io.Reader) Extractor

NewTar creates a tarball from a given a Reader.

func NewTarFile

func NewTarFile(filename string) (Extractor, error)

NewTarFile creates a tarball from a given filename.

func NewTarGz

func NewTarGz(r io.Reader) Extractor

NewTarGz creates a Gziped tarball for the give Reader.

func NewTarGzFile

func NewTarGzFile(filename string) (Extractor, error)

NewTarGzFile creates a Gziped tarball for the given filename.

type TarGz

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

func (*TarGz) Extract

func (t *TarGz) Extract(dst string) error

Extract extracts a Gziped tarball into dst.

type Tarball

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

func (*Tarball) Extract

func (t *Tarball) Extract(dst string) error

Extract extracts content of a tarball into dst.

Jump to

Keyboard shortcuts

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