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 ¶
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.
Click to show internal directories.
Click to hide internal directories.