1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package spdx
// File2_1 is a File section of an SPDX Document for version 2.1 of the spec.
type File2_1 struct {
// 4.1: File Name
// Cardinality: mandatory, one
FileName string
// 4.2: File SPDX Identifier: "SPDXRef-[idstring]"
// Cardinality: mandatory, one
FileSPDXIdentifier string
// 4.3: File Type
// Cardinality: optional, multiple
FileType []string
// 4.4: File Checksum: may have keys for SHA1, SHA256 and/or MD5
// Cardinality: mandatory, one SHA1, others may be optionally provided
FileChecksumSHA1 string
FileChecksumSHA256 string
FileChecksumMD5 string
// 4.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
// Cardinality: mandatory, one
LicenseConcluded string
// 4.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION"
// Cardinality: mandatory, one or many
LicenseInfoInFile []string
// 4.7: Comments on License
// Cardinality: optional, one
LicenseComments string
// 4.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
// Cardinality: mandatory, one
FileCopyrightText string
// DEPRECATED in version 2.1 of spec
// 4.9-4.11: Artifact of Project variables (defined below)
// Cardinality: optional, one or many
ArtifactOfProjects []*ArtifactOfProject2_1
// 4.12: File Comment
// Cardinality: optional, one
FileComment string
// 4.13: File Notice
// Cardinality: optional, one
FileNotice string
// 4.14: File Contributor
// Cardinality: optional, one or many
FileContributor []string
// DEPRECATED in version 2.0 of spec
// 4.15: File Dependencies
// Cardinality: optional, one or many
FileDependencies []string
// Snippets contained in this File
Snippets []*Snippet2_1
}
// ArtifactOfProject2_1 is a DEPRECATED collection of data regarding
// a Package, as defined in sections 4.9-4.11 in version 2.1 of the spec.
type ArtifactOfProject2_1 struct {
// DEPRECATED in version 2.1 of spec
// 4.9: Artifact of Project Name
// Cardinality: conditional, required if present, one per AOP
Name string
// DEPRECATED in version 2.1 of spec
// 4.10: Artifact of Project Homepage: URL or "UNKNOWN"
// Cardinality: optional, one per AOP
HomePage string
// DEPRECATED in version 2.1 of spec
// 4.11: Artifact of Project Uniform Resource Identifier
// Cardinality: optional, one per AOP
URI string
}
|