forked from docker-archive/oscalkit
/
category.go
23 lines (19 loc) · 1.29 KB
/
category.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// oscalkit - OSCAL conversion utility
// Written in 2017 by Andrew Weiss <andrew.weiss@docker.com>
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this software to the public domain worldwide.
// This software is distributed without any warranty.
// You should have received a copy of the CC0 Public Domain Dedication along with this software.
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
package oscal
// Category ...
type Category struct {
OptionalClass string `xml:"class,attr,omitempty" json:"class,omitempty" yaml:"class,omitempty"`
ID string `xml:"id,attr,omitempty" json:"id,omitempty" yaml:"id,omitempty"`
Title *Raw `xml:"title,omitempty" json:"title,omitempty" yaml:"title,omitempty"`
Props []Prop `xml:"prop,omitempty" json:"props,omitempty" yaml:"props,omitempty"`
Links []Link `xml:"link,omitempty" json:"links,omitempty" yaml:"links,omitempty"`
Prose *Prose `xml:",any" json:"prose,omitempty" yaml:"prose,omitempty"`
Categories []Category `xml:"group,omitempty" json:"groups,omitempty" yaml:"groups,omitempty"`
Items []Item `xml:"component,omitempty" json:"components,omitempty" yaml:"components,omitempty"`
}