github.com/quay/claircore@v1.5.28/vulnerabilityreport.go (about)

     1  package claircore
     2  
     3  import "encoding/json"
     4  
     5  // VulnerabilityReport provides a report of packages and their
     6  // associated vulnerabilities.
     7  type VulnerabilityReport struct {
     8  	// the manifest hash this vulnerability report is describing
     9  	Hash Digest `json:"manifest_hash"`
    10  	// all discovered packages in this manifest keyed by package id
    11  	Packages map[string]*Package `json:"packages"`
    12  	// all discovered distributions in this manifest keyed by distribution id
    13  	Distributions map[string]*Distribution `json:"distributions"`
    14  	// all discovered repositories in this manifest keyed by repository id
    15  	Repositories map[string]*Repository `json:"repository"`
    16  	// a list of environment details a package was discovered in keyed by package id
    17  	Environments map[string][]*Environment `json:"environments"`
    18  	// all discovered vulnerabilities affecting this manifest
    19  	Vulnerabilities map[string]*Vulnerability `json:"vulnerabilities"`
    20  	// a lookup table associating package ids with 1 or more vulnerability ids. keyed by package id
    21  	PackageVulnerabilities map[string][]string `json:"package_vulnerabilities"`
    22  	// a map of enrichments keyed by a type.
    23  	Enrichments map[string][]json.RawMessage `json:"enrichments"`
    24  }