Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackendsFactories = map[string]BackendsFactory{}
Functions ¶
func RegisterBackendFactory ¶
func RegisterBackendFactory(f BackendsFactory, provider string) error
Types ¶
type Dependency ¶
type DependencyMarker ¶
type Infrastructure ¶
type Module ¶
type Module struct {
InfraPtr *Infrastructure
ProjectPtr *Project
BackendPtr Backend
Name string
Type string
Source string
Inputs map[string]interface{}
Dependencies []Dependency
}
func (*Module) GenBackendCodeBlockHCL ¶
func (*Module) GenMainCodeBlockHCL ¶
func (*Module) GetDepsRemoteStatesHCL ¶
func (*Module) GetRemoteStateToSelfHCL ¶
func (*Module) ReplaceMarkers ¶
ReplaceMarkers replace all templated markers with values.
type Project ¶
type Project struct {
Modules map[string]*Module
DependencyMarkers map[string]DependencyMarker
InsertYAMLMarkers map[string]interface{}
Infrastructures map[string]*Infrastructure
TmplFunctionsMap template.FuncMap
Backends map[string]Backend
}
Project describes main config with user-defined variables.
func NewProject ¶
NewProject creates init and check new infrastructure project.
func (*Project) AddYAMLBlockMarker ¶
Click to show internal directories.
Click to hide internal directories.