aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/hcl2/hcl/schema.go
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:37 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:37 -0500
commit15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch)
tree255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/hashicorp/hcl2/hcl/schema.go
parent07971ca38143c5faf951d152fba370ddcbe26ad5 (diff)
downloadterraform-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.go21
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 @@
1package hcl
2
3// BlockHeaderSchema represents the shape of a block header, and is
4// used for matching blocks within bodies.
5type 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.
12type AttributeSchema struct {
13 Name string
14 Required bool
15}
16
17// BodySchema represents the desired shallow structure of a body.
18type BodySchema struct {
19 Attributes []AttributeSchema
20 Blocks []BlockHeaderSchema
21}