github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/syft/pkg/cataloger/generic/parser.go (about)

     1  package generic
     2  
     3  import (
     4  	"github.com/anchore/syft/syft/artifact"
     5  	"github.com/anchore/syft/syft/file"
     6  	"github.com/anchore/syft/syft/linux"
     7  	"github.com/anchore/syft/syft/pkg"
     8  )
     9  
    10  type Environment struct {
    11  	LinuxRelease *linux.Release
    12  }
    13  
    14  type Parser func(file.Resolver, *Environment, file.LocationReadCloser) ([]pkg.Package, []artifact.Relationship, error)