Documentation ¶
Index ¶
- Variables
- type Bzip2Decoder
- type Decoder
- func GetBzip2Decoder(filename string, reader *bufio.Reader) (Decoder, error)
- func GetDecoder(filename string, reader *bufio.Reader) (Decoder, error)
- func GetGzDecoder(filename string, reader *bufio.Reader) (Decoder, error)
- func GetTarDecoder(_ string, reader *bufio.Reader) (Decoder, error)
- func GetZipDecoder(_ string, reader *bufio.Reader) (Decoder, error)
- type Entry
- type Getter
- type GzDecoder
- type Registration
- type TarDecoder
- type ZipDecoder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("not supported")
View Source
var Registrations []Registration
Functions ¶
This section is empty.
Types ¶
type Bzip2Decoder ¶
type Bzip2Decoder struct {
// contains filtered or unexported fields
}
func (*Bzip2Decoder) Next ¶
func (d *Bzip2Decoder) Next() (*Entry, error)
type Decoder ¶
type Decoder interface { // Next will advance the container to the next entry and return its metadata Next() (*Entry, error) // Read is an io.Reader implementation on the current entry Read(p []byte) (int, error) }
Decoder is an interface for decoding archive containers
func GetDecoder ¶
GetDecoder will return the proper container decoder for a given reader
type Registration ¶
type TarDecoder ¶
type TarDecoder struct {
// contains filtered or unexported fields
}
func (*TarDecoder) Next ¶
func (d *TarDecoder) Next() (*Entry, error)
type ZipDecoder ¶
type ZipDecoder struct {
// contains filtered or unexported fields
}
func (*ZipDecoder) Next ¶
func (d *ZipDecoder) Next() (_ *Entry, err error)
Click to show internal directories.
Click to hide internal directories.