mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
19 lines
329 B
Go
19 lines
329 B
Go
package extractor
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
var (
|
|
// ErrCouldNotExtract occurs when an extraction fails.
|
|
ErrCouldNotExtract = errors.New("Could not extract the archive")
|
|
)
|
|
|
|
type FilesMap map[string][]byte
|
|
|
|
type Extractor interface {
|
|
ExtractFiles(layer io.ReadCloser, filenames []string) (FilesMap, error)
|
|
}
|