Factory#
- class neophile.factory.Factory(config, session)#
Bases:
object
Factory to create neophile components.
- Parameters:
config (
Config
) – neophile configuration.session (
ClientSession
) – The client session to use for requests.
Methods Summary
create_all_analyzers
(*[, use_venv])Create all analyzers.
Create all scanners.
Create a new Helm analyzer.
Create a new Helm inventory.
Create a new Helm analyzer.
Create a new pre-commit hook analyzer.
Create a new repository processor.
Create a new pull requester.
create_python_analyzer
(*[, use_venv])Create a new Python frozen dependency analyzer.
Methods Documentation
- create_all_analyzers(*, use_venv=False)#
Create all analyzers.
- Parameters:
use_venv (
bool
, default:False
) – Whether to use a virtualenv to isolate analysis.- Returns:
List of all available analyzers.
- Return type:
list of BaseAnalyzer
Notes
The Python analyzer requires a clean Git tree in order to determine if any changes were necessary, and therefore must run first if the analyzers are run in update mode (which means they will make changes to the working tree).
- create_all_scanners()#
Create all scanners.
- Returns:
List of all available scanners.
- Return type:
list of BaseScanner
- create_helm_analyzer()#
Create a new Helm analyzer.
- Returns:
New analyzer.
- Return type:
- create_helm_inventory()#
Create a new Helm inventory.
Uses the configuration to determine whether this should be a cached inventory and, if so, where to put the cache.
- Returns:
New inventory.
- Return type:
- create_kustomize_analyzer()#
Create a new Helm analyzer.
- Returns:
New analyzer.
- Return type:
- create_pre_commit_analyzer()#
Create a new pre-commit hook analyzer.
- Returns:
New analyzer.
- Return type:
- create_processor()#
Create a new repository processor.
- Parameters:
use_venv – Whether to use a virtualenv to isolate analysis.
- Returns:
New processor.
- Return type:
- create_pull_requester()#
Create a new pull requester.
- Returns:
New pull requester.
- Return type: