From 2e9307de3fd6b5bf934b48779c7e21f501fb32bb Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 17 Mar 2021 09:53:26 +0100 Subject: [PATCH] define ComponentKind that help enumerate what kind of components exist in hcl --- hcl2template/components.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hcl2template/components.go diff --git a/hcl2template/components.go b/hcl2template/components.go new file mode 100644 index 000000000..b2063cd38 --- /dev/null +++ b/hcl2template/components.go @@ -0,0 +1,11 @@ +package hcl2template + +// ComponentKind helps enumerate what kind of components exist in this Package. +type ComponentKind int + +const ( + Builder ComponentKind = iota + Provisioner + PostProcessor + Datasource +)