UNPKG

snyk

Version:

snyk library and cli utility

16 lines (15 loc) 892 B
import { IacFileParsed, IacFileParseFailure, IaCTestFlags, SafeAnalyticsOutput, TestReturnValue, IacOrgSettings } from './types'; import { CustomError } from '../../../../lib/errors'; export declare function test(pathToScan: string, options: IaCTestFlags): Promise<TestReturnValue>; export declare function removeFileContent({ filePath, fileType, failureReason, projectType, }: IacFileParsed | IacFileParseFailure): SafeAnalyticsOutput; export declare function isValidURL(str: string): boolean; /** * Pull and store the IaC custom-rules bundle from the remote OCI Registry. */ export declare function pullIaCCustomRules(iacOrgSettings: IacOrgSettings): Promise<void>; export declare class FailedToPullCustomBundleError extends CustomError { constructor(message?: string); } export declare class FailedToExecuteCustomRulesError extends CustomError { constructor(message?: string); }