Documentation
¶
Index ¶
- func OutputsReplacer(data reflect.Value, module project.Module) (reflect.Value, error)
- type DependencyMarker
- type Factory
- type Module
- func (m *Module) Backend() project.Backend
- func (m *Module) BuildDeps() error
- func (m *Module) CreateCodeDir(codeDir string) error
- func (m *Module) Dependencies() []*project.Dependency
- func (m *Module) ExpectedOutputs() *map[string]bool
- func (m *Module) GetApplyShellCmd() string
- func (m *Module) GetDestroyShellCmd() string
- func (m *Module) InfraName() string
- func (m *Module) InfraPtr() *project.Infrastructure
- func (m *Module) Name() string
- func (m *Module) PreHook() *project.Dependency
- func (m *Module) ProjectPtr() *project.Project
- func (m *Module) ReplaceMarkers() error
- func (m *Module) Self() interface{}
- type TFModuleDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DependencyMarker ¶
DependencyMarker - marker for template function AddDepMarker. Represent module dependency (remote state).
type Module ¶
type Module struct {
BackendPtr project.Backend
Type string
Inputs []string
// contains filtered or unexported fields
}
Module describe cluster.dev module.
func (*Module) CreateCodeDir ¶
CreateCodeDir generate all code for module.
func (*Module) Dependencies ¶
func (m *Module) Dependencies() []*project.Dependency
Dependencies return slice of module dependencies.
func (*Module) ExpectedOutputs ¶
ExpectedOutputs return expected outputs.
func (*Module) GetApplyShellCmd ¶
GetApplyShellCmd return string with bash commands sequence witch need to run in working dir to apply this module.
func (*Module) GetDestroyShellCmd ¶
GetDestroyShellCmd return string with bash commands sequence witch need to run in working dir to destroy this module.
func (*Module) InfraPtr ¶
func (m *Module) InfraPtr() *project.Infrastructure
InfraPtr return ptr to module infrastructure.
func (*Module) PreHook ¶
func (m *Module) PreHook() *project.Dependency
func (*Module) ProjectPtr ¶
ProjectPtr return ptr to module project.
func (*Module) ReplaceMarkers ¶
ReplaceMarkers replace all templated markers with values.
type TFModuleDriver ¶
type TFModuleDriver struct {
// contains filtered or unexported fields
}
TFModuleDriver driver for module type
func (*TFModuleDriver) GetScanners ¶
func (d *TFModuleDriver) GetScanners() []project.MarkerScanner
GetScanners return list of marker scanners for this module driver.
func (*TFModuleDriver) GetTemplateFunctions ¶
func (d *TFModuleDriver) GetTemplateFunctions() map[string]interface{}
GetTemplateFunctions return list of additional template functions for this module driver.
func (*TFModuleDriver) NewModule ¶
func (d *TFModuleDriver) NewModule(spec map[string]interface{}, infra *project.Infrastructure) (project.Module, error)
NewModule creates the new TerraformModule.