package
2.1.4-stackrox+incompatible
Repository: https://github.com/stackrox/scanner.git
Documentation: pkg.go.dev
# Functions
ExtractFiles decompresses and extracts only the specified files from an io.Reader representing an archive.
NewTarReadCloser attempts to detect the compression algorithm for an io.Reader and returns a TarReadCloser wrapping the Reader to transparently decompress the contents.
NewXzReader returns an io.ReadCloser by executing a command line `xz` executable to decompress the provided io.Reader.
# Variables
ErrCouldNotExtract occurs when an extraction fails.
ErrExtractedFileTooBig occurs when a file to extract is too big.
200 MiB.
# Structs
TarReadCloser embeds a *tar.Reader and the related io.Closer It is the caller's responsibility to call Close on TarReadCloser when done.
XzReader implements io.ReadCloser for data compressed via `xz`.
# Type aliases
FilesMap is a map of files' paths to their contents.