summaryrefslogtreecommitdiffstats
path: root/models/packages/package.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/packages/package.go')
-rw-r--r--models/packages/package.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/models/packages/package.go b/models/packages/package.go
index e39a7c4e41..cea04a0957 100644
--- a/models/packages/package.go
+++ b/models/packages/package.go
@@ -45,6 +45,21 @@ const (
TypeVagrant Type = "vagrant"
)
+var TypeList = []Type{
+ TypeComposer,
+ TypeConan,
+ TypeContainer,
+ TypeGeneric,
+ TypeHelm,
+ TypeMaven,
+ TypeNpm,
+ TypeNuGet,
+ TypePub,
+ TypePyPI,
+ TypeRubyGems,
+ TypeVagrant,
+}
+
// Name gets the name of the package type
func (pt Type) Name() string {
switch pt {