mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
implement rolieServiceReporter
This commit is contained in:
parent
380ccfdf5a
commit
051de5194d
1 changed files with 12 additions and 2 deletions
|
|
@ -339,8 +339,18 @@ func (r *rolieFeedReporter) report(p *processor, domain *Domain) {
|
||||||
// whether it is a [RFC8322] conform JSON file that lists the
|
// whether it is a [RFC8322] conform JSON file that lists the
|
||||||
// ROLIE feed documents and sets the "message" field value
|
// ROLIE feed documents and sets the "message" field value
|
||||||
// of the "Requirement" struct as a result of that.
|
// of the "Requirement" struct as a result of that.
|
||||||
func (r *rolieServiceReporter) report(_ *processor, _ *Domain) {
|
func (r *rolieServiceReporter) report(p *processor, domain *Domain) {
|
||||||
// TODO
|
req := r.requirement(domain)
|
||||||
|
if !p.badROLIEservice.used() {
|
||||||
|
req.message(InfoType, "ROLIE service document was not checked.")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len(p.badROLIEservice) == 0 {
|
||||||
|
req.message(InfoType, "ROLIE service document validated fine.")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
req.Messages = p.badROLIEservice
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// report tests whether a ROLIE category document is used and if so,
|
// report tests whether a ROLIE category document is used and if so,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue