1
0
Fork 0
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:
Sascha L. Teichmann 2022-07-18 22:44:34 +02:00
parent 5caed04dc8
commit 649b5c904b
3 changed files with 74 additions and 2 deletions

View file

@ -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.