File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,24 @@ import (
8
8
"strings"
9
9
)
10
10
11
+ const (
12
+ CategorySecurity = "SECURITY"
13
+ CategoryPackageManager = "PACKAGE-MANAGER"
14
+ CategoryOther = "OTHER"
15
+ CategoryPersistentId = "PERSISTENT-ID"
16
+
17
+ TypeSecurityCPE22Type = "cpe22Type"
18
+ TypeSecurityCPE23Type = "cpe23Type"
19
+
20
+ TypePackageManagerMavenCentral = "maven-central"
21
+ TypePackageManagerNpm = "npm"
22
+ TypePackageManagerNuGet = "nuget"
23
+ TypePackageManagerBower = "bower"
24
+ TypePackageManagerPURL = "purl"
25
+
26
+ TypePersistentIdSwh = "swh"
27
+ )
28
+
11
29
type Supplier struct {
12
30
// can be "NOASSERTION"
13
31
Supplier string
@@ -331,7 +349,7 @@ type Package2_2 struct {
331
349
// PackageExternalReference2_2 is an External Reference to additional info
332
350
// about a Package, as defined in section 3.21 in version 2.2 of the spec.
333
351
type PackageExternalReference2_2 struct {
334
- // category is "SECURITY", "PACKAGE-MANAGER" or "OTHER"
352
+ // category is "SECURITY", "PACKAGE-MANAGER", "PERSISTENT-ID" or "OTHER"
335
353
Category string `json:"referenceCategory"`
336
354
337
355
// type is an [idstring] as defined in Appendix VI;
You can’t perform that action at this time.
0 commit comments