mirror of
https://github.com/anchore/syft.git
synced 2025-11-20 01:43:17 +01:00
19 lines
461 B
Go
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")
|
|
}
|