mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 00:46:38 +01:00
feat: Add Lua cataloger (#2613)
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user