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:
Alan Pope
2025-09-26 10:42:29 -04:00
committed by GitHub
co-authored by Christopher Phillips
parent 64b71ec04c
commit 0a36dabf23
27 changed files with 4417 additions and 3 deletions
+18
View File
@@ -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.)
}