diff options
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcldec/gob.go')
-rw-r--r-- | vendor/github.com/hashicorp/hcl2/hcldec/gob.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcldec/gob.go b/vendor/github.com/hashicorp/hcl2/hcldec/gob.go new file mode 100644 index 0000000..e2027cf --- /dev/null +++ b/vendor/github.com/hashicorp/hcl2/hcldec/gob.go | |||
@@ -0,0 +1,23 @@ | |||
1 | package hcldec | ||
2 | |||
3 | import ( | ||
4 | "encoding/gob" | ||
5 | ) | ||
6 | |||
7 | func init() { | ||
8 | // Every Spec implementation should be registered with gob, so that | ||
9 | // specs can be sent over gob channels, such as using | ||
10 | // github.com/hashicorp/go-plugin with plugins that need to describe | ||
11 | // what shape of configuration they are expecting. | ||
12 | gob.Register(ObjectSpec(nil)) | ||
13 | gob.Register(TupleSpec(nil)) | ||
14 | gob.Register((*AttrSpec)(nil)) | ||
15 | gob.Register((*LiteralSpec)(nil)) | ||
16 | gob.Register((*ExprSpec)(nil)) | ||
17 | gob.Register((*BlockSpec)(nil)) | ||
18 | gob.Register((*BlockListSpec)(nil)) | ||
19 | gob.Register((*BlockSetSpec)(nil)) | ||
20 | gob.Register((*BlockMapSpec)(nil)) | ||
21 | gob.Register((*BlockLabelSpec)(nil)) | ||
22 | gob.Register((*DefaultSpec)(nil)) | ||
23 | } | ||