mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
Improve struct and field comments and incorporate into json schema (#4252)
* improve struct and field comments and incorporate into json schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * address review feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
+24
-8
@@ -1,12 +1,28 @@
|
||||
package pkg
|
||||
|
||||
// SwiplPackEntry represents a SWI-Prolog package from the pack system with metadata about the package and its dependencies.
|
||||
type SwiplPackEntry struct {
|
||||
Name string `toml:"name" json:"name"`
|
||||
Version string `toml:"version" json:"version"`
|
||||
Author string `json:"author" mapstructure:"Author"`
|
||||
AuthorEmail string `json:"authorEmail" mapstructure:"AuthorEmail"`
|
||||
Packager string `json:"packager" mapstructure:"Packager"`
|
||||
PackagerEmail string `json:"packagerEmail" mapstructure:"PackagerEmail"`
|
||||
Homepage string `json:"homepage"`
|
||||
Dependencies []string `toml:"dependencies" json:"dependencies"`
|
||||
// Name is the package name as found in the .toml file
|
||||
Name string `toml:"name" json:"name"`
|
||||
|
||||
// Version is the package version as found in the .toml file
|
||||
Version string `toml:"version" json:"version"`
|
||||
|
||||
// Author is author name
|
||||
Author string `json:"author" mapstructure:"Author"`
|
||||
|
||||
// AuthorEmail is author email address
|
||||
AuthorEmail string `json:"authorEmail" mapstructure:"AuthorEmail"`
|
||||
|
||||
// Packager is packager name (if different from author)
|
||||
Packager string `json:"packager" mapstructure:"Packager"`
|
||||
|
||||
// PackagerEmail is packager email address
|
||||
PackagerEmail string `json:"packagerEmail" mapstructure:"PackagerEmail"`
|
||||
|
||||
// Homepage is project homepage URL
|
||||
Homepage string `json:"homepage"`
|
||||
|
||||
// Dependencies are the list of required dependencies
|
||||
Dependencies []string `toml:"dependencies" json:"dependencies"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user