snyk-docker-plugin
Version:
Snyk CLI docker plugin
15 lines (14 loc) • 727 B
TypeScript
/// <reference types="node" />
import { Readable } from "stream";
import { ExtractAction, ExtractedLayers } from "./types";
export declare function isWhitedOutFile(filename: string): RegExpMatchArray | null;
/**
* Extract key files from the specified TAR stream.
*
* Layer streams may be compressed with gzip, zstd, or uncompressed.
* The decompressMaybe transform handles all three formats automatically.
* @param layerTarStream image layer as a Readable TAR stream. Note: consumes the stream.
* @param extractActions array of pattern, callbacks pairs
* @returns extracted file products
*/
export declare function extractImageLayer(layerTarStream: Readable, extractActions: ExtractAction[]): Promise<ExtractedLayers>;