Documentation
¶
Index ¶
- type Factory
- type TFModule
- func (m *TFModule) Backend() project.Backend
- func (m *TFModule) BuildDeps() error
- func (m *TFModule) CreateCodeDir(codeDir string) error
- func (m *TFModule) Dependencies() []*project.Dependency
- func (m *TFModule) ExpectedOutputs() *map[string]bool
- func (m *TFModule) GetApplyShellCmd() string
- func (m *TFModule) GetDestroyShellCmd() string
- func (m *TFModule) InfraName() string
- func (m *TFModule) InfraPtr() *project.Infrastructure
- func (m *TFModule) Name() string
- func (m *TFModule) PreHook() *project.Dependency
- func (m *TFModule) ProjectPtr() *project.Project
- func (m *TFModule) ReplaceMarkers() error
- func (m *TFModule) Self() interface{}
- type TFModuleDriver
- func (d *TFModuleDriver) AddRemoteStateMarker(path string) (string, error)
- func (d *TFModuleDriver) GetScanners() []project.MarkerScanner
- func (d *TFModuleDriver) GetTemplateFunctions() map[string]interface{}
- func (d *TFModuleDriver) NewModule(spec map[string]interface{}, infra *project.Infrastructure) (project.Module, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TFModule ¶
type TFModule struct {
BackendPtr project.Backend
Type string
Source string
Inputs map[string]interface{}
// contains filtered or unexported fields
}
TFModule describe cluster.dev module to deploy/destroy terraform modules.
func (*TFModule) CreateCodeDir ¶
CreateCodeDir generate all terraform code for project.
func (*TFModule) Dependencies ¶
func (m *TFModule) Dependencies() []*project.Dependency
Dependencies return slice of module dependencies.
func (*TFModule) ExpectedOutputs ¶
ExpectedOutputs return expected outputs.
func (*TFModule) GetApplyShellCmd ¶
GetApplyShellCmd return string with bash commands sequence witch need to run in working dir to apply this module.
func (*TFModule) GetDestroyShellCmd ¶
GetDestroyShellCmd return string with bash commands sequence witch need to run in working dir to destroy this module.
func (*TFModule) InfraPtr ¶
func (m *TFModule) InfraPtr() *project.Infrastructure
InfraPtr return ptr to module infrastructure.
func (*TFModule) PreHook ¶
func (m *TFModule) PreHook() *project.Dependency
PreHook return module pre hook dependency.
func (*TFModule) ProjectPtr ¶
ProjectPtr return ptr to module project.
func (*TFModule) ReplaceMarkers ¶
ReplaceMarkers replace all templated markers with values.
type TFModuleDriver ¶
type TFModuleDriver struct {
// contains filtered or unexported fields
}
TFModuleDriver driver for module type 'terraform'
func (*TFModuleDriver) AddRemoteStateMarker ¶
func (d *TFModuleDriver) AddRemoteStateMarker(path string) (string, error)
AddRemoteStateMarker function for template. Add hash marker, witch will be replaced with desired remote state.
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.