github.com/quay/claircore@v1.5.28/rhel/rhcc/ecosystem.go (about) 1 package rhcc 2 3 import ( 4 "context" 5 6 "github.com/quay/claircore/indexer" 7 ) 8 9 // NewEcosystem returns an rhcc ecosystem. 10 func NewEcosystem(_ context.Context) *indexer.Ecosystem { 11 return &indexer.Ecosystem{ 12 PackageScanners: func(_ context.Context) ([]indexer.PackageScanner, error) { 13 return []indexer.PackageScanner{&scanner{}}, nil 14 }, 15 DistributionScanners: func(_ context.Context) ([]indexer.DistributionScanner, error) { 16 return nil, nil 17 }, 18 RepositoryScanners: func(_ context.Context) ([]indexer.RepositoryScanner, error) { 19 return []indexer.RepositoryScanner{&reposcanner{}}, nil 20 }, 21 Coalescer: func(_ context.Context) (indexer.Coalescer, error) { 22 return &coalescer{}, nil 23 }, 24 } 25 }