snyk-docker-plugin
Version:
Snyk CLI docker plugin
44 lines (43 loc) • 1.18 kB
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { Elf } from "../../go-parser/types";
import { ScanResult } from "../../types";
import type { NodeModulesPackagePath } from "../types";
export interface AppDepsScanResultWithoutTarget extends Omit<ScanResult, "target"> {
nodeModulesPackagePaths?: NodeModulesPackagePath[];
}
export interface FilePathToContent {
[filePath: string]: string;
}
export interface FilePathToBuffer {
[filePath: string]: Buffer;
}
export interface JarInfo extends JarBuffer {
coords: JarCoords | null;
dependencies: JarCoords[];
nestedJars: JarBuffer[];
}
export interface JarBuffer {
location: string;
buffer: Buffer;
}
export interface JarCoords {
artifactId?: string;
groupId?: string;
version?: string;
}
export interface FilePathToElfContent {
[filePath: string]: Elf;
}
export interface AggregatedJars {
[path: string]: JarBuffer[];
}
export interface ApplicationFileInfo {
path: string;
}
export interface ApplicationFiles {
fileHierarchy: ApplicationFileInfo[];
moduleName?: string;
language: string;
}
export type FilesByDirMap = Map<string, Set<string>>;