mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00: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
1 changed files with 20 additions and 0 deletions
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…
Reference in a new issue