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/hcl2/hcl/schema.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/hcl2/hcl/schema.go')
-rw-r--r-- | vendor/github.com/hashicorp/hcl2/hcl/schema.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/schema.go b/vendor/github.com/hashicorp/hcl2/hcl/schema.go new file mode 100644 index 0000000..891257a --- /dev/null +++ b/vendor/github.com/hashicorp/hcl2/hcl/schema.go | |||
@@ -0,0 +1,21 @@ | |||
1 | package hcl | ||
2 | |||
3 | // BlockHeaderSchema represents the shape of a block header, and is | ||
4 | // used for matching blocks within bodies. | ||
5 | type BlockHeaderSchema struct { | ||
6 | Type string | ||
7 | LabelNames []string | ||
8 | } | ||
9 | |||
10 | // AttributeSchema represents the requirements for an attribute, and is used | ||
11 | // for matching attributes within bodies. | ||
12 | type AttributeSchema struct { | ||
13 | Name string | ||
14 | Required bool | ||
15 | } | ||
16 | |||
17 | // BodySchema represents the desired shallow structure of a body. | ||
18 | type BodySchema struct { | ||
19 | Attributes []AttributeSchema | ||
20 | Blocks []BlockHeaderSchema | ||
21 | } | ||