diff --git a/imgbom/pkg/metadata.go b/imgbom/pkg/metadata.go new file mode 100644 index 000000000..811e4311c --- /dev/null +++ b/imgbom/pkg/metadata.go @@ -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"` +}