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

     1  package java
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/quay/claircore/indexer"
     7  )
     8  
     9  // NewEcosystem provides the set of scanners for the java ecosystem.
    10  func NewEcosystem(ctx 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) { return nil, nil },
    16  		RepositoryScanners: func(_ context.Context) ([]indexer.RepositoryScanner, error) {
    17  			return nil, nil
    18  		},
    19  		Coalescer: func(_ context.Context) (indexer.Coalescer, error) {
    20  			return (*coalescer)(nil), nil
    21  		},
    22  	}
    23  }