External sources configuration (#1158)

This commit is contained in:
Marco Deicas
2022-08-22 11:22:18 -04:00
committed by GitHub
parent e9221ae25d
commit 13296880cd
14 changed files with 132 additions and 16 deletions
@@ -33,6 +33,11 @@ func (c *PackageCataloger) Name() string {
return "python-package-cataloger"
}
// UsesExternalSources indicates that the python package cataloger does not use external sources
func (c *PackageCataloger) UsesExternalSources() bool {
return false
}
// Catalog is given an object to resolve file references and content, this function returns any discovered Packages after analyzing python egg and wheel installations.
func (c *PackageCataloger) Catalog(resolver source.FileResolver) ([]pkg.Package, []artifact.Relationship, error) {
var fileMatches []source.Location