mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
Improve struct and field comments and incorporate into json schema (#4252)
* improve struct and field comments and incorporate into json schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * address review feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
+10
-3
@@ -2,8 +2,15 @@ package pkg
|
||||
|
||||
// ElixirMixLockEntry is a struct that represents a single entry in a mix.lock file
|
||||
type ElixirMixLockEntry struct {
|
||||
Name string `mapstructure:"name" json:"name"`
|
||||
Version string `mapstructure:"version" json:"version"`
|
||||
PkgHash string `mapstructure:"pkgHash" json:"pkgHash"`
|
||||
// Name is the package name as found in the mix.lock file
|
||||
Name string `mapstructure:"name" json:"name"`
|
||||
|
||||
// Version is the package version as found in the mix.lock file
|
||||
Version string `mapstructure:"version" json:"version"`
|
||||
|
||||
// PkgHash is the outer checksum (SHA-256) of the entire Hex package tarball for integrity verification (preferred method, replaces deprecated inner checksum)
|
||||
PkgHash string `mapstructure:"pkgHash" json:"pkgHash"`
|
||||
|
||||
// PkgHashExt is the extended package hash format (inner checksum is deprecated - SHA-256 of concatenated file contents excluding CHECKSUM file, now replaced by outer checksum)
|
||||
PkgHashExt string `mapstructure:"pkgHashExt" json:"pkgHashExt"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user