v1

package
v0.0.0-...-cf84fcc Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	XMLName  xml.Name  `xml:"Benchmark" json:"-"`
	Name     string    `xml:"-" json:"benchmark"`
	Profiles []Profile `xml:"Profile" json:"profiles"`
	Groups   []Group   `xml:"Group" json:"group"`
}

func (Benchmark) GetGroup

func (b Benchmark) GetGroup(group string) Group

func (Benchmark) GetGroups

func (b Benchmark) GetGroups() []Group

func (Benchmark) GetProfile

func (b Benchmark) GetProfile(profile string) Profile

func (Benchmark) GetProfileRules

func (b Benchmark) GetProfileRules(profile string) []Select

func (Benchmark) GetRules

func (b Benchmark) GetRules() []Group

type Group

type Group struct {
	XMLName     xml.Name `xml:"Group" json:"-"`
	Id          string   `xml:"id,attr" json:"id"`
	Title       string   `xml:"title" json:"title"`
	Description string   `xml:"description" json:"description"`
	Rules       []Rule   `xml:"Rule" json:"rule,omitempty"`
	Groups      []Group  `xml:"Group" json:"group,omitempty"`
}

type Ident

type Ident struct {
	XMLName xml.Name `xml:"ident" json:"-"`
	System  string   `xml:"system" json:"system"`
}

type Profile

type Profile struct {
	XMLName      xml.Name       `xml:"Profile" json:"-"`
	Id           string         `xml:"id,attr" json:"id"`
	Title        string         `xml:"title" json:"title"`
	Description  string         `xml:"description" json:"description"`
	Selects      []Select       `xml:"select" json:"select"`
	RefineValues []RefinedValue `xml:"refine-value,omitempty" json:"refine-value,omitempty"`
}

type Reference

type Reference struct {
	XMLName xml.Name `xml:"reference" json:"-"`
	Catalog string   `xml:"href,attr" json:"catalog"`
	Control string   `xml:",chardata" json:"control"`
}

type RefinedValue

type RefinedValue struct {
	XMLName  xml.Name `xml:"refine-value" json:"-"`
	Idref    string   `xml:"idref,attr" json:"idref"`
	Selector string   `xml:"selector,attr" json:"selector"`
}

type Rule

type Rule struct {
	XMLName     xml.Name    `xml:"Rule" json:"-"`
	Id          string      `xml:"id,attr" json:"id"`
	Title       string      `xml:"title" json:"title"`
	Description string      `xml:"description" json:"description"`
	References  []Reference `xml:"reference" json:"references"`
	Rationale   string      `xml:"rationale" json:"rationale"`
	Idents      []Ident     `xml:"ident" json:"ident,omitempty"`
}

type Select

type Select struct {
	XMLName  xml.Name `xml:"select" json:"-"`
	Idref    string   `xml:"idref,attr" json:"idref"`
	Selected bool     `xml:"selected,attr" json:"selected"`
}

type YamlRule

type YamlRule struct {
	ID          string     `yaml:"id,omitempty"`
	Title       string     `yaml:"title,omitempty"`
	Description string     `yaml:"description,omitempty"`
	Rationale   string     `yaml:"rationale,omitempty"`
	Severity    string     `yaml:"severity,omitempty"`
	Identifiers idents     `yaml:"identifiers,omitempty"`
	References  references `yaml:"references,omitempty"`
}

Jump to

Keyboard shortcuts

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