mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
* normalize cataloger patterns Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove central reference for maven configurable Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
16 lines
535 B
Go
16 lines
535 B
Go
/*
|
|
Package gentoo provides a concrete Cataloger implementation related to packages within the Gentoo linux ecosystem.
|
|
*/
|
|
package gentoo
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
// NewPortageCataloger returns a new cataloger object initialized for Gentoo Portage package manager files (a flat-file store).
|
|
func NewPortageCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("portage-cataloger").
|
|
WithParserByGlobs(parsePortageContents, "**/var/db/pkg/*/*/CONTENTS")
|
|
}
|