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

     1  package claircore
     2  
     3  // Environment describes the surrounding environment a package was
     4  // discovered in.
     5  //
     6  // Environment must be accompanied by a parent structure which maps
     7  // IDs to data models in order to have meaning. In our case this is
     8  // IndexReport or VulnerabilityReport.
     9  type Environment struct {
    10  	// the package database the associated package was discovered in
    11  	PackageDB string `json:"package_db"`
    12  	// the layer in which the associated package was introduced
    13  	IntroducedIn Digest `json:"introduced_in"`
    14  	// the ID of the distribution the package was discovered on
    15  	DistributionID string `json:"distribution_id"`
    16  	// the ID of the repository where this package was downloaded from (currently not used)
    17  	RepositoryIDs []string `json:"repository_ids"`
    18  }