mass_driver.discovery

Driver discovery system via plugins

Module Contents

Functions

discover_drivers

Discover all Drivers via plugin system

discover_forges

Discover all Forges via plugin system

discover_sources

Discover all Sources via plugin system

discover_scanners

Discover all Scanners

get_plugin_entrypoint

Fetch the given plugin’s Entrypoint, by name

get_driver_entrypoint

Fetch the given driver Entrypoint, by name

get_forge_entrypoint

Fetch the given forge Entrypoint, by name

get_source_entrypoint

Fetch the given source Entrypoint, by name

get_scanner_entrypoint

Fetch the given scanner Entrypoint, by name

get_driver

Get the given driver Class, by entrypoint name

get_forge

Get the given forge Class, by entrypoint name

get_source

Get the given source Class, by entrypoint name

get_scanner

Get the given scanner func, by entrypoint name

Data

ENTRYPOINT

The entrypoint we discover all types of plugins from

DRIVER_ENTRYPOINT

The specific entrypoint for drivers discovery

FORGE_ENTRYPOINT

The specific entrypoint for Forge discovery

SCANNER_ENTRYPOINT

The specific entrypoint for Scanner discovery

SOURCE_ENTRYPOINT

The specific entrypoint for Source discovery

API

mass_driver.discovery.ENTRYPOINT = 'massdriver'

The entrypoint we discover all types of plugins from

mass_driver.discovery.DRIVER_ENTRYPOINT = None

The specific entrypoint for drivers discovery

mass_driver.discovery.FORGE_ENTRYPOINT = None

The specific entrypoint for Forge discovery

mass_driver.discovery.SCANNER_ENTRYPOINT = None

The specific entrypoint for Scanner discovery

mass_driver.discovery.SOURCE_ENTRYPOINT = None

The specific entrypoint for Source discovery

mass_driver.discovery.discover_drivers() importlib.metadata.EntryPoints[source]

Discover all Drivers via plugin system

mass_driver.discovery.discover_forges() importlib.metadata.EntryPoints[source]

Discover all Forges via plugin system

mass_driver.discovery.discover_sources() importlib.metadata.EntryPoints[source]

Discover all Sources via plugin system

mass_driver.discovery.discover_scanners() importlib.metadata.EntryPoints[source]

Discover all Scanners

mass_driver.discovery.get_plugin_entrypoint(plugin: str, name: str, entrypoint: str, discover: Callable) importlib.metadata.EntryPoint[source]

Fetch the given plugin’s Entrypoint, by name

mass_driver.discovery.get_driver_entrypoint(driver_name: str) importlib.metadata.EntryPoint[source]

Fetch the given driver Entrypoint, by name

mass_driver.discovery.get_forge_entrypoint(forge_name: str) importlib.metadata.EntryPoint[source]

Fetch the given forge Entrypoint, by name

mass_driver.discovery.get_source_entrypoint(source_name: str) importlib.metadata.EntryPoint[source]

Fetch the given source Entrypoint, by name

mass_driver.discovery.get_scanner_entrypoint(scanner_name: str) importlib.metadata.EntryPoint[source]

Fetch the given scanner Entrypoint, by name

mass_driver.discovery.get_driver(driver_name: str) type[mass_driver.models.patchdriver.PatchDriver][source]

Get the given driver Class, by entrypoint name

mass_driver.discovery.get_forge(forge_name: str) type[mass_driver.models.forge.Forge][source]

Get the given forge Class, by entrypoint name

mass_driver.discovery.get_source(source_name: str) type[mass_driver.models.repository.Source][source]

Get the given source Class, by entrypoint name

mass_driver.discovery.get_scanner(scanner_name: str) mass_driver.models.scan.Scanner[source]

Get the given scanner func, by entrypoint name