-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
DependencySnapshot.scala
28 lines (27 loc) · 1.04 KB
/
DependencySnapshot.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package io.kipp.github.dependency.graph.domain
/** Dependency submission snapshot for GitHub.
* Modeled after the info found in:
* https://docs.github.com/en/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository
* @param version The version of the repository snapshot submission
* @param job The Job being sumbitted
* @param sha The commit SHA associated with this dependency snapshot
* @param ref The repository branch that triggered this snapshot
* @param detector A description of the detector used.
* @param metadata User-defined metadata to store domain-specific information
* limited to 8 keys with scalar values
* @param manifests A collection of package manifests
* @param scanned The time at which the snapshot was scanned in ISO8601Date
*/
final case class DependencySnapshot(
version: Int,
job: Job,
sha: String,
ref: String,
detector: Detector,
metadata: Map[
String,
String
],
manifests: Map[String, Manifest],
scanned: String
)