initial commit
This commit is contained in:
commit
d1cfc3cc70
8 changed files with 383 additions and 0 deletions
86
xml.go
Normal file
86
xml.go
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
package msrcgo
|
||||
|
||||
//NOTE XML is not yet supported
|
||||
|
||||
type xmlcvrf struct {
|
||||
DocumentTitle string `xml:"DocumentTitle"`
|
||||
DocumentType string `xml:"DocumentType"`
|
||||
DocumentPublisher struct {
|
||||
Type string `xml:"Type,attr"`
|
||||
ContactDetails string `xml:"ContactDetails"`
|
||||
IssuingAuthority string `xml:"IssuingAuthority"`
|
||||
} `xml:"DocumentPublisher"`
|
||||
DocumentTracking struct {
|
||||
Identification struct {
|
||||
ID string `xml:"ID"`
|
||||
Alias string `xml"Alias"`
|
||||
} `xml:"Identification"`
|
||||
Status string `xml:"Status"`
|
||||
Version string `xml:"Version"`
|
||||
RevisionHistory struct {
|
||||
Revision []struct {
|
||||
Number int `xml:"Number"`
|
||||
Date string `xml:"Date"`
|
||||
Description string `xml:"Description"`
|
||||
} `xml:"Revision"`
|
||||
} `xml:"RevisionHistory"`
|
||||
InitialReleaseDate string `xml:"InitialReleaseDate"`
|
||||
CurrentReleaseDate string `xml:"CurrentReleaseDate"`
|
||||
} `xml:"DocumentTracking"`
|
||||
DocumentNotes struct {
|
||||
Note []struct {
|
||||
Title string `xml:"Title,attr"`
|
||||
Audience string `xml:"Audience,attr"`
|
||||
Type string `xml:"Type,attr"`
|
||||
Ordinal string `xml:"Ordinal,attr"`
|
||||
Note string `xml:",chardata"`
|
||||
} `xml:"Note"`
|
||||
} `xml:"DocumentNotes"`
|
||||
ProductTree struct {
|
||||
FullProductName []struct {
|
||||
ProductID string `xml:"ProductID,attr"`
|
||||
FullProductName string `xml:",chardata"`
|
||||
} `xml:"FullProductName"`
|
||||
} `xml:"ProductTree"`
|
||||
Vulnerabilities []struct {
|
||||
Ordinal string `xml:"Ordinal,attr"`
|
||||
Title string `xml:"Title"`
|
||||
Notes struct {
|
||||
Note []struct {
|
||||
Type string `xml:"Type,attr"`
|
||||
Note string `xml:",chardata"`
|
||||
} `xml:"Note"`
|
||||
} `xml:"Notes"`
|
||||
CVE string `xml:"CVE"`
|
||||
ProductStatuses struct {
|
||||
Status []struct {
|
||||
Type string `xml:"Type,attr"`
|
||||
ProductID string `xml:"ProductID"`
|
||||
} `xml:"Status"`
|
||||
} `xml:"ProductStatuses"`
|
||||
CVSSScoreSets struct {
|
||||
ScoreSet []struct {
|
||||
BaseScore float32 `xml:"BaseScore"`
|
||||
TemporalScore float32 `xml:"TemporalScore"`
|
||||
Vector string `xml:"Vector"`
|
||||
ProductID string `xml:"ProductID"`
|
||||
} `xml:"ScoreSet"`
|
||||
} `xml:"CVSSScoreSets"`
|
||||
Remediations struct {
|
||||
Remediation []struct {
|
||||
Type string `xml:"Type,attr"`
|
||||
Description string `xml:"Description"`
|
||||
URL string `xml:"URL"`
|
||||
ProductID string `xml:"ProductID"`
|
||||
//NOTE not yet used
|
||||
AffectedFields interface{} `xml:"AffectedFields"`
|
||||
} `xml:"Remediation"`
|
||||
} `xml:"Remediations"`
|
||||
Acknowledgments struct {
|
||||
Acknowledgment []struct {
|
||||
Name string `xml:"Name"`
|
||||
URL string `xml:"URL"`
|
||||
} `json:Acknowledgment"`
|
||||
} `xml:"Acknowledgments"`
|
||||
} `xml:"Vulnerability"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue