Documentation
¶
Index ¶
- Constants
- type BuildSpace
- func (bs *BuildSpace) DeploymentDirectory(full bool) (path string, err error)
- func (bs *BuildSpace) MustDeploymentDirectory(full bool) (path string)
- func (bs *BuildSpace) MustPlanPath(full bool) (path string)
- func (bs *BuildSpace) MustProviderFilePath(full bool) (path string)
- func (bs *BuildSpace) MustStackDir(full bool) (path string)
- func (bs *BuildSpace) PlanPath(full bool) (path string, err error)
- func (bs *BuildSpace) ProviderFilePath(full bool) (path string, err error)
- func (bs *BuildSpace) StackDirectory(full bool) (path string, err error)
- func (bs *BuildSpace) VarFilePath(full bool) (path string, err error)
- func (bs *BuildSpace) WithDeployment(deployment *models.ResourceTfDeployment) *BuildSpace
- func (bs *BuildSpace) WithModule(module *models.ResourceTfModule) *BuildSpace
- func (bs *BuildSpace) WithStack(stack *models.ResourceTfStack) *BuildSpace
- type DoPlan
- type ProviderFile
- func (pf *ProviderFile) Byte() []byte
- func (pf *ProviderFile) RenderFileContent() string
- func (pf *ProviderFile) RenderMap(key string, c map[string]interface{}, indent int) string
- func (pf *ProviderFile) RenderSlice(key string, content []string, indent int, equalIndent int) string
- func (pf *ProviderFile) RenderString(key string, value string, indent int, equalIndent int) string
- func (pf *ProviderFile) String() string
- func (pf *ProviderFile) WriteToFile() (err error)
- type TFActionType
- type TfAction
- type TfActionDeploy
- func (tad *TfActionDeploy) BuildJob(scratchFolder string) (err error)
- func (tap *TfActionDeploy) Type() TFActionType
- func (tap *TfActionDeploy) WithDeployment(deployment *models.ResourceTfDeployment) *TfActionDeploy
- func (tap *TfActionDeploy) WithLogs(logs *goterraform.OutputLog) *TfActionDeploy
- func (tap *TfActionDeploy) WithStack(stack *models.ResourceTfStack) *TfActionDeploy
- type TfActionInit
- func (tai *TfActionInit) BuildJob(scratchFolder string) (err error)
- func (tap *TfActionInit) Type() TFActionType
- func (tai *TfActionInit) WithDeployment(deployment *models.ResourceTfDeployment) *TfActionInit
- func (tai *TfActionInit) WithLogs(logs *goterraform.OutputLog) *TfActionInit
- func (tai *TfActionInit) WithStack(stack *models.ResourceTfStack) *TfActionInit
- type TfActionPlan
- type TfAgentPool
- type VariableFile
- func (vf *VariableFile) Byte() []byte
- func (vf *VariableFile) IsMap(raw string) bool
- func (vf *VariableFile) IsSlice(raw string) bool
- func (vf *VariableFile) IsString(raw string) bool
- func (vf *VariableFile) Parse(variables map[string]string)
- func (vf *VariableFile) ParseMap(raw string) (stringMap map[string]string)
- func (vf *VariableFile) ParseSlice(raw string) (slice []string)
- func (vf *VariableFile) String() string
- func (vf *VariableFile) WriteToFile() (err error)
- type VariableFileEntry
Constants ¶
View Source
const ( TfActionPlanType = TFActionType("plan") TfActionInitType = TFActionType("init") TfActionDeployType = TFActionType("deploy") )
View Source
const ( PARSER_STATE_SLICE_START = 0 PARSER_STATE_MAP_START = 1 PARSER_STATE_MAP_KEY_START = 2 PARSER_STATE_MAP_KEY = 3 PARSER_STATE_MAP_VALUE_START = 4 PARSER_STATE_MAP_VALUE = 5 PARSER_STATE_LOOKING_FOR_STRING_START = 10 PARSER_STATE_LOOKING_FOR_STRING = 11 PARSER_STATE_ESCAPE_START = 20 PARSER_STATE_ESCAPE_STRING = 21 VARIABLE_TYPE_STRING = "string" VARIABLE_TYPE_MAP = "map" VARIABLE_TYPE_SLICE = "list" VARIABLE_FILE_TYPE_TF = "tf" VARIABLE_FILE_TYPE_TFVARS = "tfvars" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildSpace ¶
type BuildSpace struct {
// contains filtered or unexported fields
}
func NewBuildSpace ¶
func NewBuildSpace(rootDirectory string) *BuildSpace
NewBuilSpace returns an initialised build space struct
func (*BuildSpace) DeploymentDirectory ¶
func (bs *BuildSpace) DeploymentDirectory(full bool) (path string, err error)
func (*BuildSpace) MustDeploymentDirectory ¶
func (bs *BuildSpace) MustDeploymentDirectory(full bool) (path string)
func (*BuildSpace) MustPlanPath ¶
func (bs *BuildSpace) MustPlanPath(full bool) (path string)
func (*BuildSpace) MustProviderFilePath ¶
func (bs *BuildSpace) MustProviderFilePath(full bool) (path string)
func (*BuildSpace) MustStackDir ¶
func (bs *BuildSpace) MustStackDir(full bool) (path string)
MustStackDir
func (*BuildSpace) ProviderFilePath ¶
func (bs *BuildSpace) ProviderFilePath(full bool) (path string, err error)
func (*BuildSpace) StackDirectory ¶
func (bs *BuildSpace) StackDirectory(full bool) (path string, err error)
StackDirectory represents the (optionally) full path
func (*BuildSpace) VarFilePath ¶
func (bs *BuildSpace) VarFilePath(full bool) (path string, err error)
func (*BuildSpace) WithDeployment ¶
func (bs *BuildSpace) WithDeployment(deployment *models.ResourceTfDeployment) *BuildSpace
WithDeploy returns a BuildSpace struct after setting the deployment
func (*BuildSpace) WithModule ¶
func (bs *BuildSpace) WithModule(module *models.ResourceTfModule) *BuildSpace
WithModule returns a BuildSpace struct after setting the module
func (*BuildSpace) WithStack ¶
func (bs *BuildSpace) WithStack(stack *models.ResourceTfStack) *BuildSpace
WithStack returns a BuildSpace struct after setting the stack
type ProviderFile ¶
type ProviderFile struct { Providers map[string]interface{} // contains filtered or unexported fields }
func (*ProviderFile) Byte ¶
func (pf *ProviderFile) Byte() []byte
func (*ProviderFile) RenderFileContent ¶
func (pf *ProviderFile) RenderFileContent() string
func (*ProviderFile) RenderMap ¶
func (pf *ProviderFile) RenderMap(key string, c map[string]interface{}, indent int) string
func (*ProviderFile) RenderSlice ¶
func (*ProviderFile) RenderString ¶
func (*ProviderFile) String ¶
func (pf *ProviderFile) String() string
func (*ProviderFile) WriteToFile ¶
func (pf *ProviderFile) WriteToFile() (err error)
type TFActionType ¶
type TFActionType string
type TfActionDeploy ¶
type TfActionDeploy struct { Stack *models.ResourceTfStack Deployment *models.ResourceTfDeployment DoInit bool // contains filtered or unexported fields }
func (*TfActionDeploy) BuildJob ¶
func (tad *TfActionDeploy) BuildJob(scratchFolder string) (err error)
func (*TfActionDeploy) Type ¶
func (tap *TfActionDeploy) Type() TFActionType
func (*TfActionDeploy) WithDeployment ¶
func (tap *TfActionDeploy) WithDeployment(deployment *models.ResourceTfDeployment) *TfActionDeploy
func (*TfActionDeploy) WithLogs ¶
func (tap *TfActionDeploy) WithLogs(logs *goterraform.OutputLog) *TfActionDeploy
func (*TfActionDeploy) WithStack ¶
func (tap *TfActionDeploy) WithStack(stack *models.ResourceTfStack) *TfActionDeploy
type TfActionInit ¶
type TfActionInit struct { Stack *models.ResourceTfStack Deployment *models.ResourceTfDeployment // contains filtered or unexported fields }
func (*TfActionInit) BuildJob ¶
func (tai *TfActionInit) BuildJob(scratchFolder string) (err error)
func (*TfActionInit) Type ¶
func (tap *TfActionInit) Type() TFActionType
func (*TfActionInit) WithDeployment ¶
func (tai *TfActionInit) WithDeployment(deployment *models.ResourceTfDeployment) *TfActionInit
func (*TfActionInit) WithLogs ¶
func (tai *TfActionInit) WithLogs(logs *goterraform.OutputLog) *TfActionInit
func (*TfActionInit) WithStack ¶
func (tai *TfActionInit) WithStack(stack *models.ResourceTfStack) *TfActionInit
type TfActionPlan ¶
type TfActionPlan struct { Module *models.ResourceTfModule Stack *models.ResourceTfStack Deployment *models.ResourceTfDeployment DoInit bool // contains filtered or unexported fields }
func NewTfActionPlan ¶
func NewTfActionPlan(doInit bool) *TfActionPlan
func (*TfActionPlan) BuildJob ¶
func (tap *TfActionPlan) BuildJob(scratchFolder string) (err error)
func (*TfActionPlan) Type ¶
func (tap *TfActionPlan) Type() TFActionType
func (*TfActionPlan) WithDeployment ¶
func (tap *TfActionPlan) WithDeployment(deployment *models.ResourceTfDeployment) *TfActionPlan
func (*TfActionPlan) WithStack ¶
func (tap *TfActionPlan) WithStack(stack *models.ResourceTfStack) *TfActionPlan
type TfAgentPool ¶
type TfAgentPool struct {
// contains filtered or unexported fields
}
func NewAgentPool ¶
func NewAgentPool(maxWorkers int) *TfAgentPool
func (*TfAgentPool) DoInit ¶
func (p *TfAgentPool) DoInit(a *TfActionInit)
func (*TfAgentPool) DoPlan ¶
func (p *TfAgentPool) DoPlan(a *TfActionPlan)
func (*TfAgentPool) SetDebug ¶
func (p *TfAgentPool) SetDebug()
func (*TfAgentPool) Shutdown ¶
func (p *TfAgentPool) Shutdown() bool
func (*TfAgentPool) Start ¶
func (p *TfAgentPool) Start() *TfAgentPool
func (*TfAgentPool) WithDB ¶
func (p *TfAgentPool) WithDB(db database.Database) *TfAgentPool
type VariableFile ¶
type VariableFile struct { Variables map[string]*VariableFileEntry // contains filtered or unexported fields }
func (*VariableFile) Byte ¶
func (vf *VariableFile) Byte() []byte
func (*VariableFile) IsMap ¶
func (vf *VariableFile) IsMap(raw string) bool
func (*VariableFile) IsSlice ¶
func (vf *VariableFile) IsSlice(raw string) bool
func (*VariableFile) IsString ¶
func (vf *VariableFile) IsString(raw string) bool
func (*VariableFile) Parse ¶
func (vf *VariableFile) Parse(variables map[string]string)
func (*VariableFile) ParseMap ¶
func (vf *VariableFile) ParseMap(raw string) (stringMap map[string]string)
func (*VariableFile) ParseSlice ¶
func (vf *VariableFile) ParseSlice(raw string) (slice []string)
func (*VariableFile) String ¶
func (vf *VariableFile) String() string
func (*VariableFile) WriteToFile ¶
func (vf *VariableFile) WriteToFile() (err error)
Click to show internal directories.
Click to hide internal directories.