diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/terraform/plugin/discovery/version.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/plugin/discovery/version.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/plugin/discovery/version.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/plugin/discovery/version.go b/vendor/github.com/hashicorp/terraform/plugin/discovery/version.go index 8fad58d..4311d51 100644 --- a/vendor/github.com/hashicorp/terraform/plugin/discovery/version.go +++ b/vendor/github.com/hashicorp/terraform/plugin/discovery/version.go | |||
@@ -55,6 +55,11 @@ func (v Version) Equal(other Version) bool { | |||
55 | return v.raw.Equal(other.raw) | 55 | return v.raw.Equal(other.raw) |
56 | } | 56 | } |
57 | 57 | ||
58 | // IsPrerelease determines if version is a prerelease | ||
59 | func (v Version) IsPrerelease() bool { | ||
60 | return v.raw.Prerelease() != "" | ||
61 | } | ||
62 | |||
58 | // MinorUpgradeConstraintStr returns a ConstraintStr that would permit | 63 | // MinorUpgradeConstraintStr returns a ConstraintStr that would permit |
59 | // minor upgrades relative to the receiving version. | 64 | // minor upgrades relative to the receiving version. |
60 | func (v Version) MinorUpgradeConstraintStr() ConstraintStr { | 65 | func (v Version) MinorUpgradeConstraintStr() ConstraintStr { |