mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
17 lines
537 B
Go
17 lines
537 B
Go
package cataloger
|
|
|
|
import (
|
|
"github.com/anchore/imgbom/imgbom/pkg"
|
|
"github.com/anchore/imgbom/imgbom/scope"
|
|
"github.com/anchore/stereoscope/pkg/file"
|
|
)
|
|
|
|
type Cataloger interface {
|
|
Name() string
|
|
// TODO: add ID / Name for catalog for uniquely identifying this cataloger type
|
|
SelectFiles(scope.FileResolver) []file.Reference
|
|
// NOTE: one of the errors which is returned is "IterationNeeded", which indicates to the driver to
|
|
// continue with another Select/Catalog pass
|
|
Catalog(map[file.Reference]string) ([]pkg.Package, error)
|
|
}
|