diff options
author | Jake Champlin <jake.champlin.27@gmail.com> | 2017-06-06 12:40:07 -0400 |
---|---|---|
committer | Jake Champlin <jake.champlin.27@gmail.com> | 2017-06-06 12:40:07 -0400 |
commit | bae9f6d2fd5eb5bc80929bd393932b23f14d7c93 (patch) | |
tree | ca9ab12a7d78b1fc27a8f734729081357ce6d252 /vendor/github.com/hashicorp/terraform/config/provisioner_enums.go | |
parent | 254c495b6bebab3fb72a243c4bce858d79e6ee99 (diff) | |
download | terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.tar.gz terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.tar.zst terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.zip |
Initial transfer of provider code
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/config/provisioner_enums.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/config/provisioner_enums.go | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/config/provisioner_enums.go b/vendor/github.com/hashicorp/terraform/config/provisioner_enums.go new file mode 100644 index 0000000..00fd43f --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/config/provisioner_enums.go | |||
@@ -0,0 +1,40 @@ | |||
1 | package config | ||
2 | |||
3 | // ProvisionerWhen is an enum for valid values for when to run provisioners. | ||
4 | type ProvisionerWhen int | ||
5 | |||
6 | const ( | ||
7 | ProvisionerWhenInvalid ProvisionerWhen = iota | ||
8 | ProvisionerWhenCreate | ||
9 | ProvisionerWhenDestroy | ||
10 | ) | ||
11 | |||
12 | var provisionerWhenStrs = map[ProvisionerWhen]string{ | ||
13 | ProvisionerWhenInvalid: "invalid", | ||
14 | ProvisionerWhenCreate: "create", | ||
15 | ProvisionerWhenDestroy: "destroy", | ||
16 | } | ||
17 | |||
18 | func (v ProvisionerWhen) String() string { | ||
19 | return provisionerWhenStrs[v] | ||
20 | } | ||
21 | |||
22 | // ProvisionerOnFailure is an enum for valid values for on_failure options | ||
23 | // for provisioners. | ||
24 | type ProvisionerOnFailure int | ||
25 | |||
26 | const ( | ||
27 | ProvisionerOnFailureInvalid ProvisionerOnFailure = iota | ||
28 | ProvisionerOnFailureContinue | ||
29 | ProvisionerOnFailureFail | ||
30 | ) | ||
31 | |||
32 | var provisionerOnFailureStrs = map[ProvisionerOnFailure]string{ | ||
33 | ProvisionerOnFailureInvalid: "invalid", | ||
34 | ProvisionerOnFailureContinue: "continue", | ||
35 | ProvisionerOnFailureFail: "fail", | ||
36 | } | ||
37 | |||
38 | func (v ProvisionerOnFailure) String() string { | ||
39 | return provisionerOnFailureStrs[v] | ||
40 | } | ||