blob: aa39392991d6cb643801d4365de63e489e26c965 [file] [log] [blame]
package report
type VersionRange struct {
Introduced string
Fixed string
}
type Report struct {
Module string
Package string
// TODO: could also be GoToolchain, but we might want
// this for other things?
//
// could we also automate this by just looking for
// things prefixed with cmd/go?
DoNotExport bool `json:"do_not_export"`
// TODO: how does this interact with Versions etc?
Stdlib bool `json:"stdlib"`
// TODO: the most common usage of additional package should
// really be replaced with 'aliases', we'll still need
// additional packages for some cases, but it's too heavy
// for most
AdditionalPackages []struct {
Module string
Package string
Symbols []string
Versions []VersionRange
} `toml:"additional_packages"`
Versions []VersionRange
Description string
Severity string
CVE string
Credit string
Symbols []string
OS []string
Arch []string
Links struct {
PR string
Commit string
Context []string
}
CVEMetadata *struct {
ID string
CWE string
Description string
} `toml:"cve_metadata"`
}