mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +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
704 B
Go
17 lines
704 B
Go
package pkg
|
|
|
|
// HackageStackYamlLockEntry represents a single entry from the "packages" section of a stack.yaml.lock file.
|
|
type HackageStackYamlLockEntry struct {
|
|
// PkgHash is the package content hash for verification
|
|
PkgHash string `mapstructure:"pkgHash" json:"pkgHash,omitempty"`
|
|
|
|
// SnapshotURL is the URL to the Stack snapshot this package came from
|
|
SnapshotURL string `mapstructure:"snapshotURL" json:"snapshotURL,omitempty"`
|
|
}
|
|
|
|
// HackageStackYamlEntry represents a single entry from the "extra-deps" section of a stack.yaml file.
|
|
type HackageStackYamlEntry struct {
|
|
// PkgHash is the package content hash for verification
|
|
PkgHash string `mapstructure:"pkgHash" json:"pkgHash,omitempty"`
|
|
}
|