ds

package
v0.0.0-...-07db83d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: CC0-1.0 Imports: 9 Imported by: 0

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.OCILType `xml:"ocil"`

	CpeList *cpe_dict.ListType `xml:"cpe-list"`

	Tailoring *cdf.TailoringType `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:",any"`
}

Element

type ContentSourceType

type ContentSourceType struct {
	XMLName xml.Name

	Href string `xml:"href,attr"`

	InnerXml string `xml:",innerxml"`
}

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.SignatureType `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 {
	XMLName xml.Name

	ComponentRef []ComponentRef `xml:",any"`

	InnerXml string `xml:",innerxml"`
}

type ScapVersionType

type ScapVersionType string
const ScapVersionType10 ScapVersionType = "1.0"
const ScapVersionType11 ScapVersionType = "1.1"
const ScapVersionType12 ScapVersionType = "1.2"
const ScapVersionType13 ScapVersionType = "1.3"

type UseCaseType

type UseCaseType string
const UseCaseTypeConfiguration UseCaseType = "CONFIGURATION"
const UseCaseTypeInventory UseCaseType = "INVENTORY"
const UseCaseTypeOther UseCaseType = "OTHER"
const UseCaseTypeVulnerability UseCaseType = "VULNERABILITY"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL