#include <isolated_scanner.hpp>
Public Member Functions | |
| IsolatedPluginScanner (std::string worker_path) | |
| Construct with the path to the pulp-scan-worker binary that will be exec'd for each scan. | |
| ScanResult | scan (const std::string &bundle_path, int timeout_ms=5000) const |
| Scan a single bundle in a child process. | |
| const std::string & | worker_path () const noexcept |
| Accessor for the resolved worker path (mostly for diagnostics). | |
|
inlineexplicit |
Construct with the path to the pulp-scan-worker binary that will be exec'd for each scan.
Resolution policy is intentionally caller-controlled — Pulp ships the worker next to the CLI at install time, but tests inject $<TARGET_FILE:pulp-scan-worker> directly, and an embedded host may keep it elsewhere.
| ScanResult pulp::host::IsolatedPluginScanner::scan | ( | const std::string & | bundle_path, |
| int | timeout_ms = 5000 ) const |
Scan a single bundle in a child process.
Always returns; never propagates a crash from the worker back into the caller.
|
inlinenoexcept |
Accessor for the resolved worker path (mostly for diagnostics).