Documentation ¶
Overview ¶
Code generated by https://github.com/gocomply/xsd2go; DO NOT EDIT. Models for http://scap.nist.gov/schema/scap/source/1.2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { XMLName xml.Name `xml:component` Id string `xml:"id,attr"` Timestamp string `xml:"timestamp,attr"` Benchmark *cdf.Benchmark `xml:"Benchmark"` OvalDefinitions *oval_def.OvalDefinitions `xml:"oval_definitions"` Ocil *inter.Ocil `xml:"ocil"` CpeList *cpe_dict.CpeList `xml:"cpe-list"` Tailoring *cdf.Tailoring `xml:"Tailoring"` }
Element
func (*Component) DocumentType ¶
func (c *Component) DocumentType() constants.DocumentType
type ComponentRef ¶
type ComponentRef struct { XMLName xml.Name `xml:component-ref` Id string `xml:"id,attr"` XlinkType string `xml:"type,attr"` XlinkHref string `xml:"href,attr"` Catalog *er.Catalog `xml:"catalog"` }
Element
type ContentSourceType ¶
type ContentSourceType struct {
Href string `xml:"href,attr"`
}
type DataStream ¶
type DataStream struct { XMLName xml.Name `xml:data-stream` Id string `xml:"id,attr"` UseCase string `xml:"use-case,attr"` ScapVersion string `xml:"scap-version,attr"` Timestamp string `xml:"timestamp,attr"` Dictionaries *RefListType `xml:"dictionaries"` Checklists *RefListType `xml:"checklists"` Checks RefListType `xml:"checks"` ExtendedComponents *RefListType `xml:"extended-components"` }
Element
type DataStreamCollection ¶
type DataStreamCollection struct { XMLName xml.Name `xml:data-stream-collection` Id string `xml:"id,attr"` SchematronVersion string `xml:"schematron-version,attr"` DataStream []DataStream `xml:"data-stream"` Component []Component `xml:"component"` ExtendedComponent []ExtendedComponent `xml:"extended-component"` Signature []xml_dsig.Signature `xml:"Signature"` }
Element
func (*DataStreamCollection) GetComponentById ¶
func (ds *DataStreamCollection) GetComponentById(componentId string) *Component
func (*DataStreamCollection) GetComponentByRef ¶
func (ds *DataStreamCollection) GetComponentByRef(ref *ComponentRef) *Component
func (*DataStreamCollection) ScapVersion ¶
func (ds *DataStreamCollection) ScapVersion() string
type ExtendedComponent ¶
type ExtendedComponent struct { XMLName xml.Name `xml:extended-component` Id string `xml:"id,attr"` Timestamp string `xml:"timestamp,attr"` }
Element
type RefListType ¶
type RefListType struct {
ComponentRef []ComponentRef `xml:"component-ref"`
}
Click to show internal directories.
Click to hide internal directories.