mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
feat(cataloger): add snap package cataloger for metadata extraction (#4151)
--------- Signed-off-by: Alan Pope <alan.pope@anchore.com> Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com> Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
co-authored by
Christopher Phillips
parent
64b71ec04c
commit
0a36dabf23
@@ -0,0 +1,18 @@
|
||||
package pkg
|
||||
|
||||
const (
|
||||
SnapTypeBase = "base"
|
||||
SnapTypeKernel = "kernel"
|
||||
SnapTypeApp = "app"
|
||||
SnapTypeGadget = "gadget"
|
||||
SnapTypeSnapd = "snapd"
|
||||
)
|
||||
|
||||
type SnapEntry struct {
|
||||
SnapType string `json:"snapType" yaml:"snapType"` // base, kernel, system, gadget, snapd
|
||||
Base string `json:"base" yaml:"base"` // base snap name (e.g., core20, core22)
|
||||
SnapName string `json:"snapName" yaml:"snapName"` // name of the snap
|
||||
SnapVersion string `json:"snapVersion" yaml:"snapVersion"` // version of the snap
|
||||
Architecture string `json:"architecture" yaml:"architecture"` // architecture (amd64, arm64, etc.)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user