github.com/anchore/syft@v1.38.2/syft/pkg/terraform.go (about)

     1  package pkg
     2  
     3  // TerraformLockProviderEntry represents a single provider entry in a Terraform dependency lock file (.terraform.lock.hcl).
     4  type TerraformLockProviderEntry struct {
     5  	// URL is the provider source address (e.g., "registry.terraform.io/hashicorp/aws").
     6  	URL string `hcl:",label" json:"url"`
     7  	// Constraints specifies the version constraints for the provider (e.g., "~> 4.0").
     8  	Constraints string `hcl:"constraints,optional" json:"constraints"`
     9  	// Version is the locked provider version selected during terraform init.
    10  	Version string `hcl:"version" json:"version"`
    11  	// Hashes are cryptographic checksums for the provider plugin archives across different platforms.
    12  	Hashes []string `hcl:"hashes" json:"hashes"`
    13  }