vexy.sources.base
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
- class vexy.sources.base.BaseSource(*, config: Dict[str, Any] | None = None)[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- abstract _component_complete_for_source(*, component: cyclonedx.model.component.Component) bool [source]
Whether the given Component has enough data (the right fields) for us to query this data source for known vulnerabilities.
- Parameters:
component – Component
- Returns:
bool
- abstract _configure_source(*, config: Dict[str, Any]) None [source]
Perform any source specific configuration such as authentication.
- Parameters:
config – Dict[str, Any]
- Returns:
None
- abstract static source() cyclonedx.model.vulnerability.VulnerabilitySource [source]
Instance that represents this data source.
- Returns:
VulnerabilitySource
- abstract static source_description() str [source]
Human-friendly description of this data source.
- Returns:
str
- abstract static source_ecosystems() Set[vexy.EcoSystem] [source]
Which ecosystems this source has vulnerability data for.
- Returns:
Set[str]