mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Made reporters 1-based to easy lookup.
This commit is contained in:
parent
51035c0dc9
commit
8d45525e7f
1 changed files with 24 additions and 24 deletions
|
|
@ -44,30 +44,30 @@ type (
|
||||||
mirrorReporter struct{ baseReporter }
|
mirrorReporter struct{ baseReporter }
|
||||||
)
|
)
|
||||||
|
|
||||||
var reporters = [23]reporter{
|
var reporters = [...]reporter{
|
||||||
&validReporter{baseReporter{num: 1, description: "Valid CSAF documents"}},
|
1: &validReporter{baseReporter{num: 1, description: "Valid CSAF documents"}},
|
||||||
&filenameReporter{baseReporter{num: 2, description: "Filename"}},
|
2: &filenameReporter{baseReporter{num: 2, description: "Filename"}},
|
||||||
&tlsReporter{baseReporter{num: 3, description: "TLS"}},
|
3: &tlsReporter{baseReporter{num: 3, description: "TLS"}},
|
||||||
&tlpWhiteReporter{baseReporter{num: 4, description: "TLP:WHITE"}},
|
4: &tlpWhiteReporter{baseReporter{num: 4, description: "TLP:WHITE"}},
|
||||||
&tlpAmberRedReporter{baseReporter{num: 5, description: "TLP:AMBER and TLP:RED"}},
|
5: &tlpAmberRedReporter{baseReporter{num: 5, description: "TLP:AMBER and TLP:RED"}},
|
||||||
&redirectsReporter{baseReporter{num: 6, description: "Redirects"}},
|
6: &redirectsReporter{baseReporter{num: 6, description: "Redirects"}},
|
||||||
&providerMetadataReport{baseReporter{num: 7, description: "provider-metadata.json"}},
|
7: &providerMetadataReport{baseReporter{num: 7, description: "provider-metadata.json"}},
|
||||||
&securityReporter{baseReporter{num: 8, description: "security.txt"}},
|
8: &securityReporter{baseReporter{num: 8, description: "security.txt"}},
|
||||||
&wellknownMetadataReporter{baseReporter{num: 9, description: "/.well-known/csaf/provider-metadata.json"}},
|
9: &wellknownMetadataReporter{baseReporter{num: 9, description: "/.well-known/csaf/provider-metadata.json"}},
|
||||||
&dnsPathReporter{baseReporter{num: 10, description: "DNS path"}},
|
10: &dnsPathReporter{baseReporter{num: 10, description: "DNS path"}},
|
||||||
&oneFolderPerYearReport{baseReporter{num: 11, description: "One folder per year"}},
|
11: &oneFolderPerYearReport{baseReporter{num: 11, description: "One folder per year"}},
|
||||||
&indexReporter{baseReporter{num: 12, description: "index.txt"}},
|
12: &indexReporter{baseReporter{num: 12, description: "index.txt"}},
|
||||||
&changesReporter{baseReporter{num: 13, description: "changes.csv"}},
|
13: &changesReporter{baseReporter{num: 13, description: "changes.csv"}},
|
||||||
&directoryListingsReporter{baseReporter{num: 14, description: "Directory listings"}},
|
14: &directoryListingsReporter{baseReporter{num: 14, description: "Directory listings"}},
|
||||||
&rolieFeedReporter{baseReporter{num: 15, description: "ROLIE feed"}},
|
15: &rolieFeedReporter{baseReporter{num: 15, description: "ROLIE feed"}},
|
||||||
&rolieServiceReporter{baseReporter{num: 16, description: "ROLIE service document"}},
|
16: &rolieServiceReporter{baseReporter{num: 16, description: "ROLIE service document"}},
|
||||||
&rolieCategoryReporter{baseReporter{num: 17, description: "ROLIE category document"}},
|
17: &rolieCategoryReporter{baseReporter{num: 17, description: "ROLIE category document"}},
|
||||||
&integrityReporter{baseReporter{num: 18, description: "Integrity"}},
|
18: &integrityReporter{baseReporter{num: 18, description: "Integrity"}},
|
||||||
&signaturesReporter{baseReporter{num: 19, description: "Signatures"}},
|
19: &signaturesReporter{baseReporter{num: 19, description: "Signatures"}},
|
||||||
&publicPGPKeyReporter{baseReporter{num: 20, description: "Public OpenPGP Key"}},
|
20: &publicPGPKeyReporter{baseReporter{num: 20, description: "Public OpenPGP Key"}},
|
||||||
&listReporter{baseReporter{num: 21, description: "List of CSAF providers"}},
|
21: &listReporter{baseReporter{num: 21, description: "List of CSAF providers"}},
|
||||||
&hasTwoReporter{baseReporter{num: 22, description: "Two disjoint issuing parties"}},
|
22: &hasTwoReporter{baseReporter{num: 22, description: "Two disjoint issuing parties"}},
|
||||||
&mirrorReporter{baseReporter{num: 23, description: "Mirror"}},
|
23: &mirrorReporter{baseReporter{num: 23, description: "Mirror"}},
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bc *baseReporter) requirement(domain *Domain) *Requirement {
|
func (bc *baseReporter) requirement(domain *Domain) *Requirement {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue