github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/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) 15 type GroupedParser func(file.Resolver, *Environment, []file.LocationReadCloser) ([]pkg.Package, []artifact.Relationship, error)