diff options
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 { |