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

     1  package whiteout
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/quay/claircore/indexer"
     7  )
     8  
     9  // NewEcosystem provides the set of scanners and coalescers for the whiteout ecosystem.
    10  func NewEcosystem(ctx context.Context) *indexer.Ecosystem {
    11  	return &indexer.Ecosystem{
    12  		Name: "whiteout",
    13  		PackageScanners: func(ctx context.Context) ([]indexer.PackageScanner, error) {
    14  			return []indexer.PackageScanner{}, nil
    15  		},
    16  		DistributionScanners: func(ctx context.Context) ([]indexer.DistributionScanner, error) {
    17  			return []indexer.DistributionScanner{}, nil
    18  		},
    19  		RepositoryScanners: func(ctx context.Context) ([]indexer.RepositoryScanner, error) {
    20  			return []indexer.RepositoryScanner{}, nil
    21  		},
    22  		FileScanners: func(ctx context.Context) ([]indexer.FileScanner, error) {
    23  			return []indexer.FileScanner{&Scanner{}}, nil
    24  		},
    25  		Coalescer: func(ctx context.Context) (indexer.Coalescer, error) {
    26  			return (*coalescer)(nil), nil
    27  		},
    28  	}
    29  }