java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.JsonIssueParser
edu.hm.hafner.analysis.parser.TrivyParser
- Alle implementierten Schnittstellen:
Serializable
Parser for reports of aquasec trivy container vulnerability scanner.
Usage: trivy image -f json -o results.json golang:1.12-alpine
- Autor:
- Thomas Fürer - tfuerer.javanet@gmail.com
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder edu.hm.hafner.analysis.IssueParser
ADDITIONAL_PROPERTIES, CATEGORY, COLUMN_END, COLUMN_START, DESCRIPTION, FILE_NAME, FINGERPRINT, ID, LINE_END, LINE_RANGE_END, LINE_RANGE_START, LINE_RANGES, LINE_START, MESSAGE, MODULE_NAME, ORIGIN, PACKAGE_NAME, SEVERITY, TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidparseJsonArray(Report report, org.json.JSONArray jsonReport, IssueBuilder issueBuilder) Used with older schema before trivy 0.20.0.protected voidparseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Used with schema version 2 starting with trivy 0.20.0.Von Klasse geerbte Methoden edu.hm.hafner.analysis.parser.JsonIssueParser
accepts, parseVon Klasse geerbte Methoden edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
Konstruktordetails
-
TrivyParser
public TrivyParser()
-
-
Methodendetails
-
parseJsonObject
protected void parseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Used with schema version 2 starting with trivy 0.20.0.- Setzt außer Kraft:
parseJsonObjectin KlasseJsonIssueParser- Parameter:
report- the report to filljsonReport- the input JSON report given as JSON objectissueBuilder- build to be used to create issues
-
parseJsonArray
protected void parseJsonArray(Report report, org.json.JSONArray jsonReport, IssueBuilder issueBuilder) Used with older schema before trivy 0.20.0.- Setzt außer Kraft:
parseJsonArrayin KlasseJsonIssueParser- Parameter:
report- the report to filljsonReport- the input JSON report given as JSON arrayissueBuilder- build to be used to create issues
-