mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
controller: use new scope.Resolver interface
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
6cbf6d3409
commit
923d220a90
@ -31,7 +31,7 @@ func Catalogers() []string {
|
||||
return c
|
||||
}
|
||||
|
||||
func Catalog(s scope.FileContentResolver) (*pkg.Catalog, error) {
|
||||
func Catalog(s scope.Resolver) (*pkg.Catalog, error) {
|
||||
return controllerInstance.catalog(s)
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ func (c *controller) trackCataloger() (*progress.Manual, *progress.Manual) {
|
||||
return &filesProcessed, &packagesDiscovered
|
||||
}
|
||||
|
||||
func (c *controller) catalog(s scope.FileContentResolver) (*pkg.Catalog, error) {
|
||||
func (c *controller) catalog(s scope.Resolver) (*pkg.Catalog, error) {
|
||||
catalog := pkg.NewCatalog()
|
||||
fileSelection := make([]file.Reference, 0)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user