mirror of
https://github.com/anchore/syft.git
synced 2025-11-20 09:53:16 +01:00
In a .terraform.lock.hcl file in a provider block the `constraints` attribute is actually not required (=optional). Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch>
10 lines
402 B
Go
10 lines
402 B
Go
package pkg
|
|
|
|
// TerraformLockProviderEntry represents a single provider entry in a Terraform dependency lock file (.terraform.lock.hcl).
|
|
type TerraformLockProviderEntry struct {
|
|
URL string `hcl:",label" json:"url"`
|
|
Constraints string `hcl:"constraints,optional" json:"constraints"`
|
|
Version string `hcl:"version" json:"version"`
|
|
Hashes []string `hcl:"hashes" json:"hashes"`
|
|
}
|