Files
trivy/extractor/extractor.go
2019-04-01 00:16:25 +09:00

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)
}