feat: Add Lua cataloger (#2613)

Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
This commit is contained in:
Laurent Goderre
2024-05-24 16:56:34 -04:00
committed by GitHub
parent 77b3f66404
commit b51252dbdb
33 changed files with 4754 additions and 82 deletions
+6
View File
@@ -38,6 +38,7 @@ const (
PortagePkg Type = "portage"
PythonPkg Type = "python"
Rpkg Type = "R-package"
LuaRocksPkg Type = "lua-rocks"
RpmPkg Type = "rpm"
RustPkg Type = "rust-crate"
SwiftPkg Type = "swift"
@@ -73,6 +74,7 @@ var AllPkgs = []Type{
PortagePkg,
PythonPkg,
Rpkg,
LuaRocksPkg,
RpmPkg,
RustPkg,
SwiftPkg,
@@ -131,6 +133,8 @@ func (t Type) PackageURLType() string {
return packageurl.TypeNPM
case Rpkg:
return packageurl.TypeCran
case LuaRocksPkg:
return packageurl.TypeLuaRocks
case RpmPkg:
return packageurl.TypeRPM
case RustPkg:
@@ -165,6 +169,8 @@ func TypeByName(name string) Type {
return DebPkg
case packageurl.TypeRPM:
return RpmPkg
case packageurl.TypeLuaRocks:
return LuaRocksPkg
case "alpm":
return AlpmPkg
case packageurl.TypeAlpine, "alpine":