1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Continue with check framework

This commit is contained in:
Sascha L. Teichmann 2021-12-09 23:03:21 +01:00
parent 7b7a691f71
commit c4a5aa1901
3 changed files with 114 additions and 16 deletions

View file

@ -1,16 +1,19 @@
package main
type requirement struct {
// Requirement a single requirement report of a domain.
type Requirement struct {
Num int `json:"num"`
Description string `json:"description"`
Messages []string `json:"messages"`
}
type domain struct {
Name string `json:"name"`
requirements []requirement `json:"requirements"`
// Domain are the results of a domain.
type Domain struct {
Name string `json:"name"`
requirements []*Requirement `json:"requirements"`
}
type report struct {
Domains []domain `json:"domains"`
// Report is the overall report.
type Report struct {
Domains []*Domain `json:"domains"`
}