diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/hashicorp/terraform/version/version.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/version/version.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/version/version.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/version/version.go b/vendor/github.com/hashicorp/terraform/version/version.go new file mode 100644 index 0000000..b21b297 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/version/version.go | |||
@@ -0,0 +1,36 @@ | |||
1 | // The version package provides a location to set the release versions for all | ||
2 | // packages to consume, without creating import cycles. | ||
3 | // | ||
4 | // This package should not import any other terraform packages. | ||
5 | package version | ||
6 | |||
7 | import ( | ||
8 | "fmt" | ||
9 | |||
10 | version "github.com/hashicorp/go-version" | ||
11 | ) | ||
12 | |||
13 | // The main version number that is being run at the moment. | ||
14 | var Version = "0.11.12" | ||
15 | |||
16 | // A pre-release marker for the version. If this is "" (empty string) | ||
17 | // then it means that it is a final release. Otherwise, this is a pre-release | ||
18 | // such as "dev" (in development), "beta", "rc1", etc. | ||
19 | var Prerelease = "dev" | ||
20 | |||
21 | // SemVer is an instance of version.Version. This has the secondary | ||
22 | // benefit of verifying during tests and init time that our version is a | ||
23 | // proper semantic version, which should always be the case. | ||
24 | var SemVer = version.Must(version.NewVersion(Version)) | ||
25 | |||
26 | // Header is the header name used to send the current terraform version | ||
27 | // in http requests. | ||
28 | const Header = "Terraform-Version" | ||
29 | |||
30 | // String returns the complete version string, including prerelease | ||
31 | func String() string { | ||
32 | if Prerelease != "" { | ||
33 | return fmt.Sprintf("%s-%s", Version, Prerelease) | ||
34 | } | ||
35 | return Version | ||
36 | } | ||