format

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoUnpacker added in v0.0.5

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

AutoUnpacker detects the format and delegates the process to the appropriate unpacker This also means that the underlying unpackers MUST be stateless

func (*AutoUnpacker) Unpack added in v0.0.5

func (u *AutoUnpacker) Unpack(r io.Reader, downloadInfo *binstack.DownloadInfo) (io.Reader, error)

Unpack implements the Unpacker interface

type BinaryUnpacker

type BinaryUnpacker struct{}

BinaryUnpacker unpacks from plain binary format

func (*BinaryUnpacker) Unpack added in v0.0.5

func (u *BinaryUnpacker) Unpack(r io.Reader, downloadInfo *binstack.DownloadInfo) (io.Reader, error)

Unpack implements the Unpacker interface

type TargzUnpacker

type TargzUnpacker struct{}

TargzUnpacker unpacks from a tar.gz archive

func (*TargzUnpacker) Unpack added in v0.0.5

func (u *TargzUnpacker) Unpack(r io.Reader, downloadInfo *binstack.DownloadInfo) (io.Reader, error)

Unpack implements the Unpacker interface

type Unpacker

type Unpacker interface {
	Unpack(r io.Reader, download *binstack.DownloadInfo) (io.Reader, error)
}

Unpacker unpacks the binary from a download format

func NewAutoUnpacker added in v0.0.5

func NewAutoUnpacker() Unpacker

NewAutoUnpacker returns a new AutoUnpacker

type ZipUnpacker added in v0.2.0

type ZipUnpacker struct{}

ZipUnpacker unpacks from a zip archive.

func (*ZipUnpacker) Unpack added in v0.2.0

func (u *ZipUnpacker) Unpack(r io.Reader, downloadInfo *binstack.DownloadInfo) (io.Reader, error)

Unpack implements the Unpacker interface.

Jump to

Keyboard shortcuts

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