github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/syft/pkg/cataloger/generic/parser.go (about) 1 package generic 2 3 import ( 4 "github.com/kastenhq/syft/syft/artifact" 5 "github.com/kastenhq/syft/syft/file" 6 "github.com/kastenhq/syft/syft/linux" 7 "github.com/kastenhq/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)