snyk-docker-plugin
Version:
Snyk CLI docker plugin
16 lines (15 loc) • 720 B
TypeScript
import { JarCoords } from "./types";
import { AppDepsScanResultWithoutTarget, FilePathToBuffer } from "./types";
export declare function jarFilesToScannedResults(filePathToContent: FilePathToBuffer, targetImage: string, desiredLevelsOfUnpacking: number): Promise<AppDepsScanResultWithoutTarget[]>;
/**
* Gets coords from the contents of a pom.properties file
* @param {string} fileContent
* @param {string} jarPath
*/
export declare function getCoordsFromPomProperties(fileContent: string): JarCoords | null;
/**
* Parses the file content of a pom.properties file to extract
* the coords for a package.
* @param {string} fileContent
*/
export declare function parsePomProperties(fileContent: string): JarCoords;