xref: /aosp_15_r20/external/spdx-tools/spdx/common/external.go (revision ba677afa8f67bb56cbc794f4d0e378e0da058e16)
1// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
2
3package common
4
5// Constants for various string types
6const (
7	// F.2 Security types
8	TypeSecurityCPE23Type string = "cpe23Type"
9	TypeSecurityCPE22Type string = "cpe22Type"
10	TypeSecurityAdvisory  string = "advisory"
11	TypeSecurityFix       string = "fix"
12	TypeSecurityUrl       string = "url"
13	TypeSecuritySwid      string = "swid"
14
15	// F.3 Package-Manager types
16	TypePackageManagerMavenCentral string = "maven-central"
17	TypePackageManagerNpm          string = "npm"
18	TypePackageManagerNuGet        string = "nuget"
19	TypePackageManagerBower        string = "bower"
20	TypePackageManagerPURL         string = "purl"
21
22	// 11.1 Relationship field types
23	TypeRelationshipDescribe                  string = "DESCRIBES"
24	TypeRelationshipDescribeBy                string = "DESCRIBED_BY"
25	TypeRelationshipContains                  string = "CONTAINS"
26	TypeRelationshipContainedBy               string = "CONTAINED_BY"
27	TypeRelationshipDependsOn                 string = "DEPENDS_ON"
28	TypeRelationshipDependencyOf              string = "DEPENDENCY_OF"
29	TypeRelationshipBuildDependencyOf         string = "BUILD_DEPENDENCY_OF"
30	TypeRelationshipDevDependencyOf           string = "DEV_DEPENDENCY_OF"
31	TypeRelationshipOptionalDependencyOf      string = "OPTIONAL_DEPENDENCY_OF"
32	TypeRelationshipProvidedDependencyOf      string = "PROVIDED_DEPENDENCY_OF"
33	TypeRelationshipTestDependencyOf          string = "TEST_DEPENDENCY_OF"
34	TypeRelationshipRuntimeDependencyOf       string = "RUNTIME_DEPENDENCY_OF"
35	TypeRelationshipExampleOf                 string = "EXAMPLE_OF"
36	TypeRelationshipGenerates                 string = "GENERATES"
37	TypeRelationshipGeneratedFrom             string = "GENERATED_FROM"
38	TypeRelationshipAncestorOf                string = "ANCESTOR_OF"
39	TypeRelationshipDescendantOf              string = "DESCENDANT_OF"
40	TypeRelationshipVariantOf                 string = "VARIANT_OF"
41	TypeRelationshipDistributionArtifact      string = "DISTRIBUTION_ARTIFACT"
42	TypeRelationshipPatchFor                  string = "PATCH_FOR"
43	TypeRelationshipPatchApplied              string = "PATCH_APPLIED"
44	TypeRelationshipCopyOf                    string = "COPY_OF"
45	TypeRelationshipFileAdded                 string = "FILE_ADDED"
46	TypeRelationshipFileDeleted               string = "FILE_DELETED"
47	TypeRelationshipFileModified              string = "FILE_MODIFIED"
48	TypeRelationshipExpandedFromArchive       string = "EXPANDED_FROM_ARCHIVE"
49	TypeRelationshipDynamicLink               string = "DYNAMIC_LINK"
50	TypeRelationshipStaticLink                string = "STATIC_LINK"
51	TypeRelationshipDataFileOf                string = "DATA_FILE_OF"
52	TypeRelationshipTestCaseOf                string = "TEST_CASE_OF"
53	TypeRelationshipBuildToolOf               string = "BUILD_TOOL_OF"
54	TypeRelationshipDevToolOf                 string = "DEV_TOOL_OF"
55	TypeRelationshipTestOf                    string = "TEST_OF"
56	TypeRelationshipTestToolOf                string = "TEST_TOOL_OF"
57	TypeRelationshipDocumentationOf           string = "DOCUMENTATION_OF"
58	TypeRelationshipOptionalComponentOf       string = "OPTIONAL_COMPONENT_OF"
59	TypeRelationshipMetafileOf                string = "METAFILE_OF"
60	TypeRelationshipPackageOf                 string = "PACKAGE_OF"
61	TypeRelationshipAmends                    string = "AMENDS"
62	TypeRelationshipPrerequisiteFor           string = "PREREQUISITE_FOR"
63	TypeRelationshipHasPrerequisite           string = "HAS_PREREQUISITE"
64	TypeRelationshipRequirementDescriptionFor string = "REQUIREMENT_DESCRIPTION_FOR"
65	TypeRelationshipSpecificationFor          string = "SPECIFICATION_FOR"
66	TypeRelationshipOther                     string = "OTHER"
67)
68