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

     1  package gobin
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/quay/claircore/indexer"
     7  )
     8  
     9  // NewEcosystem provides the ecosystem for handling go binaries.
    10  func NewEcosystem(ctx context.Context) *indexer.Ecosystem {
    11  	return &indexer.Ecosystem{
    12  		Name: "gobin",
    13  		PackageScanners: func(context.Context) ([]indexer.PackageScanner, error) {
    14  			return []indexer.PackageScanner{Detector{}}, nil
    15  		},
    16  		DistributionScanners: func(context.Context) ([]indexer.DistributionScanner, error) { return nil, nil },
    17  		RepositoryScanners:   func(context.Context) ([]indexer.RepositoryScanner, error) { return nil, nil },
    18  		Coalescer:            func(context.Context) (indexer.Coalescer, error) { return &coalescer{}, nil },
    19  	}
    20  }