aboutsummaryrefslogtreecommitdiff
path: root/spdx/document.go
blob: 2541ec46d7c631f63ee0b1e61365e36dfd6d91e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Package spdx contains the struct definition for an SPDX Document
// and its constituent parts.
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package spdx

// Document2_1 is an SPDX Document for version 2.1 of the spec.
// See https://spdx.org/sites/cpstandard/files/pages/files/spdxversion2.1.pdf
type Document2_1 struct {
	CreationInfo    *CreationInfo2_1
	Packages        map[ElementID]*Package2_1
	UnpackagedFiles map[ElementID]*File2_1
	OtherLicenses   []*OtherLicense2_1
	Relationships   []*Relationship2_1
	Annotations     []*Annotation2_1

	// DEPRECATED in version 2.0 of spec
	Reviews []*Review2_1
}