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.