diff --git a/syft/pkg/cataloger/catalog.go b/syft/pkg/cataloger/catalog.go index fe228d23f0f6..81880d73aacf 100644 --- a/syft/pkg/cataloger/catalog.go +++ b/syft/pkg/cataloger/catalog.go @@ -25,8 +25,8 @@ type Monitor struct { PackagesDiscovered progress.Monitorable // the number of packages discovered from all registered catalogers } -// CatalogResult provides the result of running a single cataloger against source -type CatalogResult struct { +// catalogResult provides the result of running a single cataloger against source +type catalogResult struct { Packages []pkg.Package Relationships []artifact.Relationship // Discovered may sometimes be more than len(packages) @@ -49,8 +49,8 @@ func newMonitor() (*progress.Manual, *progress.Manual) { return &filesProcessed, &packagesDiscovered } -func runCataloger(cataloger pkg.Cataloger, resolver source.FileResolver) (*CatalogResult, error) { - catalogerResult := new(CatalogResult) +func runCataloger(cataloger pkg.Cataloger, resolver source.FileResolver) (*catalogResult, error) { + catalogerResult := new(catalogResult) // find packages from the underlying raw data log.Debugf("cataloging with %q", cataloger.Name()) @@ -111,7 +111,7 @@ func Catalog(resolver source.FileResolver, release *linux.Release, parallelism i log.Debugf("Using parallelism=%d for catalogs=%d", parallelism, nCatalogers) jobs := make(chan pkg.Cataloger, nCatalogers) - results := make(chan *CatalogResult, nCatalogers) + results := make(chan *catalogResult, nCatalogers) discoveredPackages := make(chan int64, nCatalogers) waitGroup := sync.WaitGroup{}