Skip to content

Commit

Permalink
Updating doc for TerraTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil.bhat committed Jan 6, 2020
1 parent c4388fb commit 02fb4d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 02fb4d0

Please sign in to comment.