aboutsummaryrefslogtreecommitdiff
path: root/spdx/document.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/document.go')
-rw-r--r--spdx/document.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/spdx/document.go b/spdx/document.go
new file mode 100644
index 0000000..9f0c919
--- /dev/null
+++ b/spdx/document.go
@@ -0,0 +1,17 @@
+// 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 []*Package2_1
+ OtherLicenses []*OtherLicense2_1
+ Relationships []*Relationship2_1
+ Annotations []*Annotation2_1
+
+ // DEPRECATED in version 2.0 of spec
+ Reviews []*Review2_1
+}