mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 08:26:38 +01:00
use filetree reader instead of filetree
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
type Analyzer interface {
|
||||
Name() string
|
||||
// TODO: add ID / Name for analyze for uniquely identifying this analyzer type
|
||||
SelectFiles([]*tree.FileTree) []file.Reference
|
||||
SelectFiles([]tree.FileTreeReader) []file.Reference
|
||||
// NOTE: one of the errors which is returned is "IterationNeeded", which indicates to the driver to
|
||||
// continue with another Select/Analyze pass
|
||||
Analyze(map[file.Reference]string) ([]pkg.Package, error)
|
||||
|
||||
@@ -21,7 +21,7 @@ func (a *Analyzer) Name() string {
|
||||
return "dpkg-analyzer"
|
||||
}
|
||||
|
||||
func (a *Analyzer) SelectFiles(trees []*tree.FileTree) []file.Reference {
|
||||
func (a *Analyzer) SelectFiles(trees []tree.FileTreeReader) []file.Reference {
|
||||
files := make([]file.Reference, 0)
|
||||
for _, tree := range trees {
|
||||
// TODO: extract into function/slice/etc
|
||||
|
||||
Reference in New Issue
Block a user