This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
models.go
94 lines (57 loc) · 2.03 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by https://github.com/gocomply/xsd2go; DO NOT EDIT.
// Models for http://oval.mitre.org/XMLSchema/oval-definitions-5#freebsd
package freebsd_def
import (
"encoding/xml"
"github.com/complianceascode/librescap/pkg/scap/models/oval"
"github.com/complianceascode/librescap/pkg/scap/models/oval_def"
"github.com/complianceascode/librescap/pkg/scap/models/xml_dsig"
)
// Element
type PortinfoTest struct {
XMLName xml.Name `xml:portinfo_test`
Id string `xml:"id,attr"`
Version string `xml:"version,attr"`
CheckExistence string `xml:"check_existence,attr"`
Check string `xml:"check,attr"`
StateOperator string `xml:"state_operator,attr"`
Comment string `xml:"comment,attr"`
Deprecated string `xml:"deprecated,attr"`
Object oval_def.ObjectRefType `xml:"object"`
State []oval_def.StateRefType `xml:"state"`
Signature *xml_dsig.Signature `xml:"Signature"`
Notes *oval.Notes `xml:"notes"`
}
// Element
type PortinfoObject struct {
XMLName xml.Name `xml:portinfo_object`
Id string `xml:"id,attr"`
Version string `xml:"version,attr"`
Comment string `xml:"comment,attr"`
Deprecated string `xml:"deprecated,attr"`
Set oval_def.Set `xml:"set"`
Signature *xml_dsig.Signature `xml:"Signature"`
Notes *oval.Notes `xml:"notes"`
}
// Element
type PortinfoState struct {
XMLName xml.Name `xml:portinfo_state`
Id string `xml:"id,attr"`
Version string `xml:"version,attr"`
Operator string `xml:"operator,attr"`
Comment string `xml:"comment,attr"`
Deprecated string `xml:"deprecated,attr"`
Pkginst *oval_def.EntityStateStringType `xml:"pkginst"`
Name *oval_def.EntityStateStringType `xml:"name"`
Category *oval_def.EntityStateStringType `xml:"category"`
VersionElm *PortinfoStateVersion `xml:"version"`
Vendor *oval_def.EntityStateStringType `xml:"vendor"`
Description *oval_def.EntityStateStringType `xml:"description"`
Signature *xml_dsig.Signature `xml:"Signature"`
Notes *oval.Notes `xml:"notes"`
}
// Element
type PortinfoStateVersion struct {
XMLName xml.Name `xml:version`
}
// XSD ComplexType declarations