Versions in this module Expand all Collapse all v0 v0.9.0 Aug 4, 2026 Changes in this version + type MockTerraformProvider struct + BackendConfigCompleteFunc func() bool + CacheOutputsFunc func(componentID string) error + ClearCacheFunc func() + FindRelativeProjectPathFunc func(directory ...string) (string, error) + FormatArgsForEnvFunc func(args []string) string + GenerateBackendOverrideFunc func(directory string) error + GenerateTerraformArgsFunc func(componentID string, interactive bool) (*TerraformArgs, error) + GetEnvVarsFunc func(componentID string, interactive bool) (map[string]string, []string, *TerraformArgs, error) + GetStatePathFunc func(componentID string) (string, error) + GetTFDataDirFunc func(componentID string) (string, error) + GetTerraformComponentFunc func(componentID string) *blueprintv1alpha1.TerraformComponent + GetTerraformComponentsFunc func() []blueprintv1alpha1.TerraformComponent + GetTerraformOutputsFunc func(componentID string) (map[string]any, error) + IsInTerraformProjectFunc func() bool + SetConfigScopeFunc func(scope map[string]any) + SetTerraformComponentsFunc func(components []blueprintv1alpha1.TerraformComponent) + TerraformScopedEnvKeysFunc func() ([]string, error) + func (m *MockTerraformProvider) BackendConfigComplete() bool + func (m *MockTerraformProvider) CacheOutputs(componentID string) error + func (m *MockTerraformProvider) ClearCache() + func (m *MockTerraformProvider) FindRelativeProjectPath(directory ...string) (string, error) + func (m *MockTerraformProvider) FormatArgsForEnv(args []string) string + func (m *MockTerraformProvider) GenerateBackendOverride(directory string) error + func (m *MockTerraformProvider) GenerateTerraformArgs(componentID string, interactive bool) (*TerraformArgs, error) + func (m *MockTerraformProvider) GetEnvVars(componentID string, interactive bool) (map[string]string, []string, *TerraformArgs, error) + func (m *MockTerraformProvider) GetStatePath(componentID string) (string, error) + func (m *MockTerraformProvider) GetTFDataDir(componentID string) (string, error) + func (m *MockTerraformProvider) GetTerraformComponent(componentID string) *blueprintv1alpha1.TerraformComponent + func (m *MockTerraformProvider) GetTerraformComponents() []blueprintv1alpha1.TerraformComponent + func (m *MockTerraformProvider) GetTerraformOutputs(componentID string) (map[string]any, error) + func (m *MockTerraformProvider) IsInTerraformProject() bool + func (m *MockTerraformProvider) SetConfigScope(scope map[string]any) + func (m *MockTerraformProvider) SetTerraformComponents(components []blueprintv1alpha1.TerraformComponent) + func (m *MockTerraformProvider) TerraformScopedEnvKeys() ([]string, error) + type Shims struct + Getenv func(string) string + Getwd func() (string, error) + Glob func(string) ([]string, error) + Goos func() string + HclParseConfig func([]byte, string, hcl.Pos) (*hclwrite.File, hcl.Diagnostics) + JsonMarshal func(any) ([]byte, error) + JsonUnmarshal func([]byte, any) error + LookupEnv func(string) (string, bool) + ReadFile func(string) ([]byte, error) + Remove func(string) error + Setenv func(string, string) error + Sleep func(time.Duration) + Stat func(string) (os.FileInfo, error) + Unsetenv func(string) error + WriteFile func(string, []byte, os.FileMode) error + YamlMarshal func(any) ([]byte, error) + YamlUnmarshal func([]byte, any) error + func NewShims() *Shims + type TerraformArgs struct + ApplyArgs []string + BackendConfig string + DestroyArgs []string + ImportArgs []string + InitArgs []string + PlanArgs []string + PlanDestroyArgs []string + RefreshArgs []string + TFDataDir string + type TerraformProvider interface + BackendConfigComplete func() bool + CacheOutputs func(componentID string) error + ClearCache func() + FindRelativeProjectPath func(directory ...string) (string, error) + FormatArgsForEnv func(args []string) string + GenerateBackendOverride func(directory string) error + GenerateTerraformArgs func(componentID string, interactive bool) (*TerraformArgs, error) + GetEnvVars func(componentID string, interactive bool) (map[string]string, []string, *TerraformArgs, error) + GetStatePath func(componentID string) (string, error) + GetTFDataDir func(componentID string) (string, error) + GetTerraformComponent func(componentID string) *blueprintv1alpha1.TerraformComponent + GetTerraformComponents func() []blueprintv1alpha1.TerraformComponent + GetTerraformOutputs func(componentID string) (map[string]any, error) + IsInTerraformProject func() bool + SetConfigScope func(scope map[string]any) + SetTerraformComponents func(components []blueprintv1alpha1.TerraformComponent) + TerraformScopedEnvKeys func() ([]string, error) + func NewTerraformProvider(configHandler config.ConfigHandler, shell shell.Shell, ...) TerraformProvider