assets_guardian.core.domain.ports.pdf_builders

Classes

IPDFBuilder()

Contract that each plugin implements to render its section in the PDF audit report.

class assets_guardian.core.domain.ports.pdf_builders.IPDFBuilder[source]

Bases: ABC

Contract that each plugin implements to render its section in the PDF audit report.

abstractmethod render(pdf: Any, findings: Iterable[Finding]) None[source]

Renders the PDF section for this source.

Parameters:
  • pdf – The PDF object currently being built (FPDF or equivalent).

  • findings – List of Finding elements filtered for this source, already grouped by severity by the calling PDFWriter.

abstract property section_title: str

Title of the section in the PDF report. E.g., β€˜GitLab - gitlab.com’

abstract property source_name: str

Name of the source (β€˜gitlab’, β€˜m365’, β€˜dolibarr’).