package
1.12.0-alpha20250213
Repository: https://github.com/hashicorp/terraform.git
Documentation: pkg.go.dev
# Functions
MeetingConstraints returns a version set that contains all of the versions that meet the given constraints, specified using the Spec type from the constraints package.
MustParseHash is a wrapper around ParseHash that panics if it returns an error.
MustParseVersion is a variant of ParseVersion that panics if it encounters an error while parsing.
MustParseVersionConstraints is a variant of ParseVersionConstraints that panics if it encounters an error while parsing.
ParseHash parses the string representation of a Hash into a Hash value.
ParseVersion parses a "semver"-style version string into a Version value, which is the version syntax we use for provider versions.
ParseVersionConstraints parses a "Ruby-like" version constraint string into a VersionConstraints value.
PreferredHashes examines all of the given hash strings and returns the one that the current version of Terraform considers to provide the strongest verification.
VersionConstraintsString returns a canonical string representation of a VersionConstraints value.
# Constants
HashScheme1 is the scheme identifier for the first hash scheme.
HashSchemeZip is the scheme identifier for the legacy hash scheme that applies to distribution archives (.zip files) rather than package contents, and can therefore only be verified against the original distribution .zip file, not an extracted directory.
NilHash is the zero value of Hash.
# Variables
UnspecifiedVersion is the zero value of Version, representing the absense of a version number.
# Type aliases
Hash is a specially-formatted string representing a checksum of a package or the contents of the package.
HashScheme is an enumeration of schemes that are allowed for values of type Hash.
Requirements gathers together requirements for many different providers into a single data structure, as a convenient way to represent the full set of requirements for a particular configuration or state or both.
Selections gathers together version selections for many different providers.
Version represents a particular single version of a provider.
VersionConstraints represents a set of version constraints, which can define the membership of a VersionSet by exclusion.
VersionList represents a list of versions.
VersionSet represents a set of versions, usually describing the acceptable versions that can be selected under a particular version constraint provided by the end-user.
Warnings represents a list of warnings returned by a Registry source.