forked from quay/claircore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.go
More file actions
18 lines (17 loc) · 765 Bytes
/
environment.go
File metadata and controls
18 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 Digest `json:"introduced_in"`
// the ID of the distribution the package was discovered on
DistributionID string `json:"distribution_id"`
// the ID of the repository where this package was downloaded from (currently not used)
RepositoryIDs []string `json:"repository_ids"`
}