aboutsummaryrefslogtreecommitdiff
path: root/spdx/common
diff options
context:
space:
mode:
authorpxp928 <parth.psu@gmail.com>2022-10-03 12:07:00 -0400
committerpxp928 <parth.psu@gmail.com>2022-10-03 12:13:42 -0400
commit31a11a374d8c40e0a95bfab03cc38034076d757f (patch)
treecc942cd5a3e36413194df8affb7695ac80e41c76 /spdx/common
parent97ef16cfc20c7ff192156fdebfc21401b360a965 (diff)
downloadspdx-tools-31a11a374d8c40e0a95bfab03cc38034076d757f.tar.gz
updated constants
Signed-off-by: pxp928 <parth.psu@gmail.com>
Diffstat (limited to 'spdx/common')
-rw-r--r--spdx/common/external.go64
1 files changed, 61 insertions, 3 deletions
diff --git a/spdx/common/external.go b/spdx/common/external.go
index b4d84a2..59c3f0f 100644
--- a/spdx/common/external.go
+++ b/spdx/common/external.go
@@ -2,8 +2,66 @@
package common
-// *Type is the enumerable of ReferenceType
+// Constants for various string types
const (
- Cpe23Type string = "cpe23Type"
- PurlType string = "purl"
+ // F.2 Security types
+ TypeSecurityCPE23Type string = "cpe23Type"
+ TypeSecurityCPE22Type string = "cpe22Type"
+ TypeSecurityAdvisory string = "advisory"
+ TypeSecurityFix string = "fix"
+ TypeSecurityUrl string = "url"
+ TypeSecuritySwid string = "swid"
+
+ // F.3 Package-Manager types
+ TypePackageManagerMavenCentral string = "maven-central"
+ TypePackageManagerNpm string = "npm"
+ TypePackageManagerNuGet string = "nuget"
+ TypePackageManagerBower string = "bower"
+ TypePackageManagerPURL string = "purl"
+
+ // 11.1 Relationship field types
+ TypeRelationshipDescribe string = "DESCRIBES"
+ TypeRelationshipDescribeBy string = "DESCRIBED_BY"
+ TypeRelationshipContains string = "CONTAINS"
+ TypeRelationshipContainedBy string = "CONTAINED_BY"
+ TypeRelationshipDependsOn string = "DEPENDS_ON"
+ TypeRelationshipDependencyOf string = "DEPENDENCY_OF"
+ TypeRelationshipBuildDependencyOf string = "BUILD_DEPENDENCY_OF"
+ TypeRelationshipDevDependencyOf string = "DEV_DEPENDENCY_OF"
+ TypeRelationshipOptionalDependencyOf string = "OPTIONAL_DEPENDENCY_OF"
+ TypeRelationshipProvidedDependencyOf string = "PROVIDED_DEPENDENCY_OF"
+ TypeRelationshipTestDependencyOf string = "TEST_DEPENDENCY_OF"
+ TypeRelationshipRuntimeDependencyOf string = "RUNTIME_DEPENDENCY_OF"
+ TypeRelationshipExampleOf string = "EXAMPLE_OF"
+ TypeRelationshipGenerates string = "GENERATES"
+ TypeRelationshipGeneratedFrom string = "GENERATED_FROM"
+ TypeRelationshipAncestorOf string = "ANCESTOR_OF"
+ TypeRelationshipDescendantOf string = "DESCENDANT_OF"
+ TypeRelationshipVariantOf string = "VARIANT_OF"
+ TypeRelationshipDistributionArtifact string = "DISTRIBUTION_ARTIFACT"
+ TypeRelationshipPatchFor string = "PATCH_FOR"
+ TypeRelationshipPatchApplied string = "PATCH_APPLIED"
+ TypeRelationshipCopyOf string = "COPY_OF"
+ TypeRelationshipFileAdded string = "FILE_ADDED"
+ TypeRelationshipFileDeleted string = "FILE_DELETED"
+ TypeRelationshipFileModified string = "FILE_MODIFIED"
+ TypeRelationshipExpandedFromArchive string = "EXPANDED_FROM_ARCHIVE"
+ TypeRelationshipDynamicLink string = "DYNAMIC_LINK"
+ TypeRelationshipStaticLink string = "STATIC_LINK"
+ TypeRelationshipDataFileOf string = "DATA_FILE_OF"
+ TypeRelationshipTestCaseOf string = "TEST_CASE_OF"
+ TypeRelationshipBuildToolOf string = "BUILD_TOOL_OF"
+ TypeRelationshipDevToolOf string = "DEV_TOOL_OF"
+ TypeRelationshipTestOf string = "TEST_OF"
+ TypeRelationshipTestToolOf string = "TEST_TOOL_OF"
+ TypeRelationshipDocumentationOf string = "DOCUMENTATION_OF"
+ TypeRelationshipOptionalComponentOf string = "OPTIONAL_COMPONENT_OF"
+ TypeRelationshipMetafileOf string = "METAFILE_OF"
+ TypeRelationshipPackageOf string = "PACKAGE_OF"
+ TypeRelationshipAmends string = "AMENDS"
+ TypeRelationshipPrerequisiteFor string = "PREREQUISITE_FOR"
+ TypeRelationshipHasPrerequisite string = "HAS_PREREQUISITE"
+ TypeRelationshipRequirementDescriptionFor string = "REQUIREMENT_DESCRIPTION_FOR"
+ TypeRelationshipSpecificationFor string = "SPECIFICATION_FOR"
+ TypeRelationshipOther string = "OTHER"
)