-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Louis DeLosSantos
authored
Jan 8, 2020
1 parent
3d53113
commit 27ade1d
Showing
22 changed files
with
370 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package claircore | ||
|
||
// Environment describes the surrounding environment a package was | ||
// discovered in. | ||
// | ||
// Environment must be accompanied by a parent structure which maps | ||
// IDs to data models in order to have meaning. In our case this is | ||
// IndexReport or VulnerabilityReport. | ||
type Environment struct { | ||
// the package database the associated package was discovered in | ||
PackageDB string `json:"package_db"` | ||
// the layer in which the associated package was introduced | ||
IntroducedIn string `json:"introduced_in"` | ||
// the ID of the distribution the package was discovered on | ||
DistributionID int `json:"distribution_id"` | ||
// the ID of the repository where this package was downloaded from (currently not used) | ||
RepositoryID int `json:"repository_id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.