google.cloud.forseti.scanner.scanners.ke_base_scanner module

KE Base scanner.

ke_scanner_factory(scanner_name, rules_engine_cls)[source]

Factory function for instantiating KeBaseScanner subclasses

Parameters:
  • scanner_name (str) – a human-readable name for the subclass to fill in log messages.
  • rules_engine_cls (BaseRulesEngine) – a BaseRulesEngine subclass to implement the rules engine for the scanner subclass.
Raises:

TypeError – if rules_engine_cls isn’t a BaseRulesEngine

Returns:

a subclass of KeBaseScanner.

Return type:

class