mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
plumb context through catalogers (#2528)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package pkg
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/anchore/syft/syft/artifact"
|
||||
"github.com/anchore/syft/syft/file"
|
||||
)
|
||||
@@ -12,5 +14,5 @@ type Cataloger interface {
|
||||
// Name returns a string that uniquely describes a cataloger
|
||||
Name() string
|
||||
// Catalog is given an object to resolve file references and content, this function returns any discovered Packages after analyzing the catalog source.
|
||||
Catalog(resolver file.Resolver) ([]Package, []artifact.Relationship, error)
|
||||
Catalog(context.Context, file.Resolver) ([]Package, []artifact.Relationship, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user