entity.plugins.base module
- class entity.plugins.base.Plugin(resources, config=None)[source]
Bases:
ABCBase class for all plugins.
- class ConfigModel[source]
Bases:
BaseModelDefault empty configuration.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- validate_workflow(workflow)[source]
Validate that
clscan run instagebefore workflow execution.- Parameters:
workflow (Workflow)
- Return type:
- should_execute(context)[source]
Determine if plugin should run for this context.
- Returns:
True if the plugin should execute, False to skip.
- Parameters:
context (PluginContext)
- Return type: