aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/hcl2/hcl/schema.go
diff options
context:
space:
mode:
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}