aboutsummaryrefslogtreecommitdiff
path: root/spdx/snippet.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/snippet.go')
-rw-r--r--spdx/snippet.go102
1 files changed, 0 insertions, 102 deletions
diff --git a/spdx/snippet.go b/spdx/snippet.go
deleted file mode 100644
index 6bffb8c..0000000
--- a/spdx/snippet.go
+++ /dev/null
@@ -1,102 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
-
-package spdx
-
-type SnippetRangePointer struct {
- // 5.3: Snippet Byte Range: [start byte]:[end byte]
- // Cardinality: mandatory, one
- Offset int `json:"offset,omitempty"`
-
- // 5.4: Snippet Line Range: [start line]:[end line]
- // Cardinality: optional, one
- LineNumber int `json:"lineNumber,omitempty"`
-
- FileSPDXIdentifier ElementID `json:"reference"`
-}
-
-type SnippetRange struct {
- StartPointer SnippetRangePointer `json:"startPointer"`
- EndPointer SnippetRangePointer `json:"endPointer"`
-}
-
-// Snippet2_1 is a Snippet section of an SPDX Document for version 2.1 of the spec.
-type Snippet2_1 struct {
-
- // 5.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
- // Cardinality: mandatory, one
- SnippetSPDXIdentifier ElementID `json:"SPDXID"`
-
- // 5.2: Snippet from File SPDX Identifier
- // Cardinality: mandatory, one
- SnippetFromFileSPDXIdentifier ElementID `json:"snippetFromFile"`
-
- // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to
- Ranges []SnippetRange `json:"ranges"`
-
- // 5.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
- // Cardinality: mandatory, one
- SnippetLicenseConcluded string `json:"licenseConcluded"`
-
- // 5.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION"
- // Cardinality: optional, one or many
- LicenseInfoInSnippet []string `json:"licenseInfoInSnippets,omitempty"`
-
- // 5.7: Snippet Comments on License
- // Cardinality: optional, one
- SnippetLicenseComments string `json:"licenseComments,omitempty"`
-
- // 5.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
- // Cardinality: mandatory, one
- SnippetCopyrightText string `json:"copyrightText"`
-
- // 5.9: Snippet Comment
- // Cardinality: optional, one
- SnippetComment string `json:"comment,omitempty"`
-
- // 5.10: Snippet Name
- // Cardinality: optional, one
- SnippetName string `json:"name,omitempty"`
-}
-
-// Snippet2_2 is a Snippet section of an SPDX Document for version 2.2 of the spec.
-type Snippet2_2 struct {
-
- // 5.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
- // Cardinality: mandatory, one
- SnippetSPDXIdentifier ElementID `json:"SPDXID"`
-
- // 5.2: Snippet from File SPDX Identifier
- // Cardinality: mandatory, one
- SnippetFromFileSPDXIdentifier ElementID `json:"snippetFromFile"`
-
- // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to
- Ranges []SnippetRange `json:"ranges"`
-
- // 5.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION"
- // Cardinality: mandatory, one
- SnippetLicenseConcluded string `json:"licenseConcluded"`
-
- // 5.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION"
- // Cardinality: optional, one or many
- LicenseInfoInSnippet []string `json:"licenseInfoInSnippets,omitempty"`
-
- // 5.7: Snippet Comments on License
- // Cardinality: optional, one
- SnippetLicenseComments string `json:"licenseComments,omitempty"`
-
- // 5.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
- // Cardinality: mandatory, one
- SnippetCopyrightText string `json:"copyrightText"`
-
- // 5.9: Snippet Comment
- // Cardinality: optional, one
- SnippetComment string `json:"comment,omitempty"`
-
- // 5.10: Snippet Name
- // Cardinality: optional, one
- SnippetName string `json:"name,omitempty"`
-
- // 5.11: Snippet Attribution Text
- // Cardinality: optional, one or many
- SnippetAttributionTexts []string `json:"-"`
-}