mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Added publisher and role to domain report.
This commit is contained in:
parent
5caed04dc8
commit
649b5c904b
3 changed files with 74 additions and 2 deletions
|
|
@ -11,6 +11,8 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/csaf-poc/csaf_distribution/csaf"
|
||||
)
|
||||
|
||||
// MessageType is the kind of the message.
|
||||
|
|
@ -40,8 +42,10 @@ type Requirement struct {
|
|||
|
||||
// Domain are the results of a domain.
|
||||
type Domain struct {
|
||||
Name string `json:"name"`
|
||||
Requirements []*Requirement `json:"requirements,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Publisher *csaf.Publisher `json:"publisher,omitempty"`
|
||||
Role *csaf.MetadataRole `json:"role,omitempty"`
|
||||
Requirements []*Requirement `json:"requirements,omitempty"`
|
||||
}
|
||||
|
||||
// ReportTime stores the time of the report.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue