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/tfdiags/diagnostic.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/tfdiags/diagnostic.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go b/vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go index 2c23f76..c91ba9a 100644 --- a/vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go +++ b/vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go | |||
@@ -1,9 +1,18 @@ | |||
1 | package tfdiags | 1 | package tfdiags |
2 | 2 | ||
3 | import ( | ||
4 | "github.com/hashicorp/hcl2/hcl" | ||
5 | ) | ||
6 | |||
3 | type Diagnostic interface { | 7 | type Diagnostic interface { |
4 | Severity() Severity | 8 | Severity() Severity |
5 | Description() Description | 9 | Description() Description |
6 | Source() Source | 10 | Source() Source |
11 | |||
12 | // FromExpr returns the expression-related context for the diagnostic, if | ||
13 | // available. Returns nil if the diagnostic is not related to an | ||
14 | // expression evaluation. | ||
15 | FromExpr() *FromExpr | ||
7 | } | 16 | } |
8 | 17 | ||
9 | type Severity rune | 18 | type Severity rune |
@@ -24,3 +33,8 @@ type Source struct { | |||
24 | Subject *SourceRange | 33 | Subject *SourceRange |
25 | Context *SourceRange | 34 | Context *SourceRange |
26 | } | 35 | } |
36 | |||
37 | type FromExpr struct { | ||
38 | Expression hcl.Expression | ||
39 | EvalContext *hcl.EvalContext | ||
40 | } | ||