mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
* 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>
26 lines
876 B
Go
26 lines
876 B
Go
package pkg
|
|
|
|
// OpamPackage represents an OCaml package managed by the OPAM package manager with metadata from .opam files.
|
|
type OpamPackage struct {
|
|
// Name is the package name as found in the .opam file
|
|
Name string `toml:"name" json:"name"`
|
|
|
|
// Version is the package version as found in the .opam file
|
|
Version string `toml:"version" json:"version"`
|
|
|
|
// Licenses are the list of applicable licenses
|
|
Licenses []string `mapstructure:"licenses" json:"licenses"`
|
|
|
|
// URL is download URL for the package source
|
|
URL string `mapstructure:"url" json:"url"`
|
|
|
|
// Checksums are the list of checksums for verification
|
|
Checksums []string `mapstructure:"checksums" json:"checksum"`
|
|
|
|
// Homepage is project homepage URL
|
|
Homepage string `json:"homepage"`
|
|
|
|
// Dependencies are the list of required dependencies
|
|
Dependencies []string `toml:"dependencies" json:"dependencies"`
|
|
}
|