Alex Goodman 078dbedfb6
separate CPE definitions from capabilities
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-04-02 00:13:21 -04:00

19 lines
461 B
Go

/*
Package apkdb provides a concrete Cataloger implementation for Alpine DB files.
*/
package apkdb
import (
"github.com/anchore/syft/syft/cataloger/packages/generic"
"github.com/anchore/syft/syft/pkg"
)
// NewApkdbCataloger returns a new Alpine DB cataloger object.
func NewApkdbCataloger() *generic.Cataloger {
globParsers := map[string]generic.Parser{
pkg.ApkDBGlob: parseApkDB,
}
return generic.NewCataloger(nil, globParsers, "apkdb-cataloger")
}