aboutsummaryrefslogtreecommitdiff
path: root/spdx/annotation.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/annotation.go')
-rw-r--r--spdx/annotation.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/spdx/annotation.go b/spdx/annotation.go
new file mode 100644
index 0000000..0846d62
--- /dev/null
+++ b/spdx/annotation.go
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
+package spdx
+
+// Annotation2_1 is an Annotation section of an SPDX Document for version 2.1 of the spec.
+type Annotation2_1 struct {
+
+ // 8.1: Annotator
+ // Cardinality: conditional (mandatory, one) if there is an Annotation
+ Annotator string
+ // including AnnotatorType: one of "Person", "Organization" or "Tool"
+ AnnotatorType string
+
+ // 8.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ
+ // Cardinality: conditional (mandatory, one) if there is an Annotation
+ AnnotationDate string
+
+ // 8.3: Annotation Type: "REVIEW" or "OTHER"
+ // Cardinality: conditional (mandatory, one) if there is an Annotation
+ AnnotationType string
+
+ // 8.4: SPDX Identifier Reference
+ // Cardinality: conditional (mandatory, one) if there is an Annotation
+ AnnotationSPDXIdentifier string
+
+ // 8.5: Annotation Comment
+ // Cardinality: conditional (mandatory, one) if there is an Annotation
+ AnnotationComment string
+}