github.com/quay/claircore@v1.5.28/python/ecosystem.go (about)

     1  package python
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/quay/claircore/indexer"
     7  )
     8  
     9  var scanners = []indexer.PackageScanner{&Scanner{}}
    10  
    11  // NewEcosystem provides the set of scanners for the python ecosystem.
    12  func NewEcosystem(ctx context.Context) *indexer.Ecosystem {
    13  	return &indexer.Ecosystem{
    14  		PackageScanners:      func(_ context.Context) ([]indexer.PackageScanner, error) { return scanners, nil },
    15  		DistributionScanners: func(_ context.Context) ([]indexer.DistributionScanner, error) { return nil, nil },
    16  		RepositoryScanners:   func(_ context.Context) ([]indexer.RepositoryScanner, error) { return nil, nil },
    17  		Coalescer:            NewCoalescer,
    18  	}
    19  }