1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Add new reporters to list of reporters in csaf_checker/main.go

This commit is contained in:
JanHoefelmeyer 2023-05-15 14:12:16 +02:00
parent 068a94235c
commit 150db4d31b

View file

@ -146,8 +146,8 @@ var reporters = [23]reporter{
&validReporter{baseReporter{num: 1, description: "Valid CSAF documents"}}, &validReporter{baseReporter{num: 1, description: "Valid CSAF documents"}},
&filenameReporter{baseReporter{num: 2, description: "Filename"}}, &filenameReporter{baseReporter{num: 2, description: "Filename"}},
&tlsReporter{baseReporter{num: 3, description: "TLS"}}, &tlsReporter{baseReporter{num: 3, description: "TLS"}},
nil, // TODO: Add 4: TLP:WHITE &tlpWhiteReporter{baseReporter{num: 4, description: "TLP:WHITE"}},
nil, // TODO: Add 5: TLP:AMBER and TLP:RED &tlpAmberRedReporter{baseReporter{num: 5, description: "TLP:AMBER and TLP:RED"}},
&redirectsReporter{baseReporter{num: 6, description: "Redirects"}}, &redirectsReporter{baseReporter{num: 6, description: "Redirects"}},
&providerMetadataReport{baseReporter{num: 7, description: "provider-metadata.json"}}, &providerMetadataReport{baseReporter{num: 7, description: "provider-metadata.json"}},
&securityReporter{baseReporter{num: 8, description: "security.txt"}}, &securityReporter{baseReporter{num: 8, description: "security.txt"}},
@ -157,15 +157,15 @@ var reporters = [23]reporter{
&indexReporter{baseReporter{num: 12, description: "index.txt"}}, &indexReporter{baseReporter{num: 12, description: "index.txt"}},
&changesReporter{baseReporter{num: 13, description: "changes.csv"}}, &changesReporter{baseReporter{num: 13, description: "changes.csv"}},
&directoryListingsReporter{baseReporter{num: 14, description: "Directory listings"}}, &directoryListingsReporter{baseReporter{num: 14, description: "Directory listings"}},
nil, // TODO: Add 15: ROLIE feed &rolieFeedReporter{baseReporter{num: 15, description: "ROLIE feed"}},
nil, // TODO: Add 16: ROLIE service document &rolieServiceReporter{baseReporter{num: 16, description: "ROLIE service document"}},
nil, // TODO: Add 17: ROLIE category document &rolieCategoryReporter{baseReporter{num: 17, description: "ROLIE category document"}},
&integrityReporter{baseReporter{num: 18, description: "Integrity"}}, &integrityReporter{baseReporter{num: 18, description: "Integrity"}},
&signaturesReporter{baseReporter{num: 19, description: "Signatures"}}, &signaturesReporter{baseReporter{num: 19, description: "Signatures"}},
&publicPGPKeyReporter{baseReporter{num: 20, description: "Public OpenPGP Key"}}, &publicPGPKeyReporter{baseReporter{num: 20, description: "Public OpenPGP Key"}},
nil, // TODO: Add 21: List of CSAF providers &listReporter{baseReporter{num: 21, description: "List of CSAF providers"}},
nil, // TODO: Add 22: Two disjoint issuing parties &hasTwoReporter{baseReporter{num: 22, description: "Two disjoint issuing parties"}},
nil, // TODO: Add 23: Mirror &mirrorReporter{baseReporter{num: 23, description: "Mirror"}},
} }
var roleImplies = map[csaf.MetadataRole][]csaf.MetadataRole{ var roleImplies = map[csaf.MetadataRole][]csaf.MetadataRole{