Documentation ¶
Index ¶
- func GetDefaults(moduleName string, modulesMap *templates.MainModuleTF) string
- func GetRequired(moduleName string, modulesMap *templates.MainModuleTF) string
- func ModuleDataWrapper(moduleName string, moduleData templates.ModuleData) map[string]interface{}
- func SimpleWrap(moduleName string, moduleData map[string]string) map[string]interface{}
- type ModuleParser
- type TemplateAPI
- type TemplateHandler
- type Terraform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaults ¶
func GetDefaults(moduleName string, modulesMap *templates.MainModuleTF) string
func GetRequired ¶ added in v0.1.0
func GetRequired(moduleName string, modulesMap *templates.MainModuleTF) string
func ModuleDataWrapper ¶
func ModuleDataWrapper(moduleName string, moduleData templates.ModuleData) map[string]interface{}
Types ¶
type ModuleParser ¶
type ModuleParser struct {
// contains filtered or unexported fields
}
func (*ModuleParser) GetModulesList ¶
type TemplateAPI ¶ added in v0.1.0
func NewTemplateAPI ¶ added in v0.1.0
func NewTemplateAPI() *TemplateAPI
type TemplateHandler ¶
type TemplateHandler struct {
// contains filtered or unexported fields
}
func NewTemplateHandler ¶
func NewTemplateHandler(log logger.Logger) *TemplateHandler
func (*TemplateHandler) GetTemplate ¶
func (*TemplateHandler) WriteTemplateToFile ¶
func (th *TemplateHandler) WriteTemplateToFile(fileName, templatePath, destinationPath string, out interface{}, isDefaultTemplate bool) error
type Terraform ¶
type Terraform struct {
// contains filtered or unexported fields
}
func NewTerraform ¶
func NewTerraform(log logger.Logger, parser *ModuleParser, templateHandler *TemplateHandler, localsTemplatePath, objectTemplatePath, mainTemplatePath string) *Terraform
func (*Terraform) GenerateMain ¶
func (*Terraform) GenerateModuleDefaultLocals ¶
func (*Terraform) GenerateModuleVariableObject ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.