mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 00:16:38 +01:00
add apk/alpine support (#98)
This commit is contained in:
@@ -41,3 +41,21 @@ type JavaMetadata struct {
|
||||
PomProperties *PomProperties `mapstructure:"PomProperties"`
|
||||
Parent *Package
|
||||
}
|
||||
|
||||
// source: https://wiki.alpinelinux.org/wiki/Apk_spec
|
||||
type ApkMetadata struct {
|
||||
Package string `mapstructure:"P"`
|
||||
OriginPackage string `mapstructure:"o"`
|
||||
Maintainer string `mapstructure:"m"`
|
||||
Version string `mapstructure:"V"`
|
||||
License string `mapstructure:"L"`
|
||||
Architecture string `mapstructure:"A"`
|
||||
URL string `mapstructure:"U"`
|
||||
Description string `mapstructure:"T"`
|
||||
Size int `mapstructure:"S"`
|
||||
InstalledSize int `mapstructure:"I"`
|
||||
PullDependencies string `mapstructure:"D"`
|
||||
PullChecksum string `mapstructure:"C"`
|
||||
GitCommitOfAport string `mapstructure:"c"`
|
||||
Files []string
|
||||
}
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ package pkg
|
||||
|
||||
const (
|
||||
UnknownPkg Type = iota
|
||||
//ApkPkg
|
||||
ApkPkg
|
||||
BundlerPkg
|
||||
DebPkg
|
||||
EggPkg
|
||||
@@ -20,7 +20,7 @@ type Type uint
|
||||
|
||||
var typeStr = []string{
|
||||
"UnknownPackage",
|
||||
//"apk",
|
||||
"apk",
|
||||
"bundle",
|
||||
"deb",
|
||||
"egg",
|
||||
@@ -35,7 +35,7 @@ var typeStr = []string{
|
||||
}
|
||||
|
||||
var AllPkgs = []Type{
|
||||
//ApkPkg,
|
||||
ApkPkg,
|
||||
BundlerPkg,
|
||||
DebPkg,
|
||||
EggPkg,
|
||||
|
||||
Reference in New Issue
Block a user