modulepackage
1.2.2
Repository: https://github.com/ovotech/terraform-testing.git
Documentation: pkg.go.dev
# README
terraform-testing
A repo for shared terraform testing modules
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
DownloadProviderVersion will download the specified version of provider into the ~/.terraform.d/plugin-cache directory.
DownloadProviderVersionE will download the specified version of the provider into the ~/.terraform.d/plugin-cache directory Usage: * version is the version of provider to download.
DownloadRequiredProviders will download the specified version of provider into the ~/.terraform.d/plugin-cache directory.
DownloadTerraformVersion will download the specified version of Terraform into the ~/.terraform.versions directory.
DownloadTerraformVersionE will download the specified version of Terraform into the ~/.terraform.versions directory
Usage: * version is the version of Terraform to download.
FilterMinorVersions groups versions by their major.minor version or fails the test if an error occurs during filtering.
FilterMinorVersionsE groups versions by their major.minor version or returns an error if an error occurs during filtering.
No description provided by the author
GetAvailableVersions returns all the released versions of a provider or the Terraform binary or fails the test if something goes wrong.
GetAvailableVersionsE returns all of the versions available for the given provider or the Terraform binary, or returns an error if something goes wrong.
GetBinaryPath will return the cache path required to store the provider cache
Usage: * cachePath is the path required to store the provider cache.
GetBinaryUrlE will return the correct download URL for the provider binary version requested based on the operating system and architecture by fetching it from the Hashicorp releases API
Usage: * version is the version of provider to download.
GetEcrRepository returns the given ECR repository.
GetMatchingVersions returns a slice of all the given versions that meet the given constraint or fails the test if something goes wrong.
GetMatchingVersionsE returns a slice of the matching version strings that meet the constraint criteria given, or an error if something goes wrong.
No description provided by the author
GetProviderConstraint returns the version string for the given provider or fails the test if the provider is not found.
GetProviderConstraintE returns the version string for the given provider or an error if the provider cannot be found.
GetSourceAddress returns the source string for the given provider or fails the test if the provider is not found Usage: * provider is the name of provider to download.
GetSourceAddressE returns the source string for the given provider or an error if the provider cannot be found Usage: * attrribute is the name of attrribute to return.
GetSsmParameter returns the value of the given parameter as stored in SSM Parameter Store.
GetTerraformBinaryUrlE will return the correct download URL for the terraform binary version requested based on the operating system and architecture by fetching it from the Hashicorp releases API
Usage: * version is the version of Terraform to download.
GetTerraformVersionConstraint returns the Terraform version string for the given module or fails the test if the version is not found.
GetTerraformVersionConstraintE returns the Terraform version string for the given module or an error if the provider cannot be found.
IterateTerraformInDirectory will iterate over the files in a directory, running the callback function for every Terraform file found.
No description provided by the author
No description provided by the author
UpdateModuleSourceAndVersion will update the specified modules source and version with the given values.
UpdateModuleSourceAndVersionE will update the specified modules source and version with the given values.
No description provided by the author
UpdateModuleSourceToAbsolutePath will update the specified modules source to the given path by turning it into an absolute path to enable testing examples by changing the repository location from the remote source to the given local one with changes.
UpdateModuleSourceToPath will update the specified modules source to the given path to enable testing examples by changing the repository location from the remote source to the given local one with changes.
UpdateModuleSourceToPathE will update the specified modules source to the given path to enable testing examples by changing the repository location from the remote source to the given local one with changes.
UpdateProviderVersion will update the specified provider's version with the given value.
UpdateProviderVersionE will update the specified provider's version with the given value.
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Version represents a semantic version.