mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
create a package to place analyzer metadata
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
d56d157e90
commit
fa08a8fe6f
20
imgbom/pkg/metadata.go
Normal file
20
imgbom/pkg/metadata.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package pkg
|
||||||
|
|
||||||
|
// TODO: consider keeping the remaining values as an embedded map
|
||||||
|
// Available fields are described at http://manpages.ubuntu.com/manpages/xenial/man1/dpkg-query.1.html
|
||||||
|
// in the --showformat section
|
||||||
|
type DpkgMetadata struct {
|
||||||
|
Package string `mapstructure:"Package"`
|
||||||
|
Architecture string `mapstructure:"Architecture"`
|
||||||
|
DependsPkgs string `mapstructure:"Depends"`
|
||||||
|
InstalledSize string `mapstructure:"Installed-Size"`
|
||||||
|
Maintainer string `mapstructure:"Maintainer"`
|
||||||
|
Priority string `mapstructure:"Priority"`
|
||||||
|
ProvidesPkgs string `mapstructure:"Provides"`
|
||||||
|
RecommendsPkgs string `mapstructure:"Recommends"`
|
||||||
|
ReplacesPkgs string `mapstructure:"Replaces"`
|
||||||
|
Status string `mapstructure:"Status"`
|
||||||
|
SuggestsPkgs string `mapstructure:"Suggests"`
|
||||||
|
Version string `mapstructure:"Version"`
|
||||||
|
ConfigFiles string `mapstructure:"Conffiles"`
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user