UNPKG

supamend

Version:

Pluggable DevSecOps Security Scanner with 10+ scanners and multiple reporting channels

50 lines 1.28 kB
import { Scanner } from '../interfaces/scanner'; import { Reporter } from '../interfaces/reporter'; export declare class PluginManager { private scanners; private reporters; private pluginsLoaded; constructor(); /** * Load all available plugins (only once) */ private loadPlugins; /** * Load scanner plugins from src/scanners directory */ private loadScanners; /** * Load reporter plugins from src/reporters directory */ private loadReporters; /** * Get a scanner by name */ getScanner(name: string): Promise<Scanner | undefined>; /** * Get a reporter by name */ getReporter(name: string): Promise<Reporter | undefined>; /** * Check if a reporter exists (regardless of availability) */ hasReporter(name: string): boolean; /** * Check if a scanner exists (regardless of availability) */ hasScanner(name: string): boolean; /** * List all available scanners */ listScanners(): string[]; /** * List all available reporters */ listReporters(): string[]; /** * Add timeout to async operations */ private withTimeout; } export default PluginManager; //# sourceMappingURL=plugin-manager.d.ts.map