mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 14:36:33 +01:00
* 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>
17 lines
799 B
Go
17 lines
799 B
Go
package pkg
|
|
|
|
// ErlangRebarLockEntry represents a single package entry from the "deps" section within an Erlang rebar.lock file.
|
|
type ErlangRebarLockEntry struct {
|
|
// Name is the package name as found in the rebar.lock file
|
|
Name string `mapstructure:"name" json:"name"`
|
|
|
|
// Version is the package version as found in the rebar.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 over deprecated inner checksum)
|
|
PkgHash string `mapstructure:"pkgHash" json:"pkgHash"`
|
|
|
|
// PkgHashExt is the extended package hash format (inner checksum deprecated - was SHA-256 of concatenated file contents)
|
|
PkgHashExt string `mapstructure:"pkgHashExt" json:"pkgHashExt"`
|
|
}
|