From 02fb4d046c0ab8fc983ec9d5ac36fccee67c6dc1 Mon Sep 17 00:00:00 2001 From: "nikhil.bhat" Date: Mon, 6 Jan 2020 12:49:22 +0530 Subject: [PATCH] Updating doc for TerraTemplate --- gen/gen.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gen/gen.go b/gen/gen.go index 959d19c..435338f 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -26,17 +26,22 @@ type GenInput struct { // Path defines where the templates has to be generated. Path string // TemplateRaw consists of go-templates which are the core for terragen. - TemplateRaw TerraTemplate + TemplateRaw TerraTemplate + // AutoGenMessage will be configured by terragen and cannot be overwritten. + AutoGenMessage string writer io.Writer template string - AutoGenMessage string } // TerraTemplate are the collections of go-templates which are used to generate terraform provider's base template. type TerraTemplate struct { + // ProviderTemp holds the template for provider ProviderTemp string - RootTemp string - DataTemp string + // RootTemp holds the template for root file + RootTemp string + // DataTemp holds the template for data + DataTemp string + // ResourceTemp holds the template for resource ResourceTemp string }