1 | import { DepGraph } from "@snyk/dep-graph";
|
2 | import { JarFingerprint } from "./analyzer/types";
|
3 | import { DockerFileAnalysis } from "./dockerfile/types";
|
4 | import { OCIDistributionMetadata } from "./extractor/oci-distribution-metadata";
|
5 | import {
|
6 | AutoDetectedUserInstructions,
|
7 | ImageNameInfo,
|
8 | ManifestFile,
|
9 | } from "./types";
|
10 |
|
11 | export interface DepGraphFact {
|
12 | type: "depGraph";
|
13 | data: DepGraph;
|
14 | }
|
15 |
|
16 | export interface KeyBinariesHashesFact {
|
17 | type: "keyBinariesHashes";
|
18 | data: string[];
|
19 | }
|
20 |
|
21 | export interface ImageLayersFact {
|
22 | type: "imageLayers";
|
23 | data: string[];
|
24 | }
|
25 |
|
26 | export interface DockerfileAnalysisFact {
|
27 | type: "dockerfileAnalysis";
|
28 | data: DockerFileAnalysis;
|
29 | }
|
30 |
|
31 | export interface RootFsFact {
|
32 | type: "rootFs";
|
33 | data: string[];
|
34 | }
|
35 |
|
36 | export interface AutoDetectedUserInstructionsFact {
|
37 | type: "autoDetectedUserInstructions";
|
38 | data: AutoDetectedUserInstructions;
|
39 | }
|
40 | export interface ImageIdFact {
|
41 | type: "imageId";
|
42 | data: string;
|
43 | }
|
44 |
|
45 | export interface ImageNamesFact {
|
46 | type: "imageNames";
|
47 | data: ImageNameInfo;
|
48 | }
|
49 |
|
50 | export interface ImageOsReleasePrettyNameFact {
|
51 | type: "imageOsReleasePrettyName";
|
52 | data: string;
|
53 | }
|
54 |
|
55 | export interface ImageManifestFilesFact {
|
56 | type: "imageManifestFiles";
|
57 | data: ManifestFile[];
|
58 | }
|
59 |
|
60 | export interface TestedFilesFact {
|
61 | type: "testedFiles";
|
62 | data: string[];
|
63 | }
|
64 |
|
65 | export interface JarFingerprintsFact {
|
66 | type: "jarFingerprints";
|
67 | data: {
|
68 | fingerprints: JarFingerprint[];
|
69 | origin: string;
|
70 | path: string;
|
71 | };
|
72 | }
|
73 |
|
74 | export interface ImageLabels {
|
75 | type: "imageLabels";
|
76 | data: {
|
77 | [key: string]: string;
|
78 | };
|
79 | }
|
80 |
|
81 | export interface ImageSizeBytesFact {
|
82 | type: "imageSizeBytes";
|
83 | data: number;
|
84 | }
|
85 |
|
86 | export interface ImageCreationTimeFact {
|
87 | type: "imageCreationTime";
|
88 | data: string;
|
89 | }
|
90 |
|
91 | export interface LoadedPackagesFact {
|
92 | type: "loadedPackages";
|
93 | data: string;
|
94 | }
|
95 |
|
96 | export interface OCIDistributionMetadataFact {
|
97 | type: "ociDistributionMetadata";
|
98 | data: OCIDistributionMetadata;
|
99 | }
|