github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/cataloger/gentoo/cataloger.go (about) 1 /* 2 Package gentoo provides a concrete Cataloger implementation related to packages within the Gentoo linux ecosystem. 3 */ 4 package gentoo 5 6 import ( 7 "github.com/anchore/syft/syft/pkg" 8 "github.com/anchore/syft/syft/pkg/cataloger/generic" 9 ) 10 11 // NewPortageCataloger returns a new cataloger object initialized for Gentoo Portage package manager files (a flat-file store). 12 func NewPortageCataloger() pkg.Cataloger { 13 return generic.NewCataloger("portage-cataloger"). 14 WithParserByGlobs(parsePortageContents, "**/var/db/pkg/*/*/CONTENTS") 15 }