UNPKG

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