Documentation
¶
Index ¶
- func UpdateProviderLockConstraints(filePath, providerSource, constraints string) (bool, error)
- func WriteModuleVersion(filePath, moduleName, newVersion string) error
- func WriteProviderLock(filePath, providerSource, version, constraints string, hashes []string) error
- func WriteProviderVersion(filePath, providerName, newConstraint string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateProviderLockConstraints ¶
UpdateProviderLockConstraints updates only the constraints attribute of an existing provider entry in .terraform.lock.hcl. Returns false if the provider block was not found.
func WriteModuleVersion ¶
WriteModuleVersion updates the version attribute of a module block in a .tf file.
func WriteProviderLock ¶
func WriteProviderLock(filePath, providerSource, version, constraints string, hashes []string) error
WriteProviderLock creates or updates a provider entry in .terraform.lock.hcl.
func WriteProviderVersion ¶
WriteProviderVersion updates the version constraint in a required_providers block. Since hclwrite doesn't support nested object manipulation directly, we use token-level string replacement within the provider attribute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.