Versions in this module Expand all Collapse all v1 v1.1.3 Dec 29, 2021 Changes in this version + const JSON_UI_VERSION + type Apply interface + Diagnostics func(diags tfdiags.Diagnostics) + HelpPrompt func() + Hooks func() []terraform.Hook + Operation func() Operation + Outputs func(outputValues map[string]*states.OutputValue) + ResourceCount func(stateOutPath string) + func NewApply(vt arguments.ViewType, destroy bool, view *View) Apply + type ApplyHuman struct + func (v *ApplyHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *ApplyHuman) HelpPrompt() + func (v *ApplyHuman) Hooks() []terraform.Hook + func (v *ApplyHuman) Operation() Operation + func (v *ApplyHuman) Outputs(outputValues map[string]*states.OutputValue) + func (v *ApplyHuman) ResourceCount(stateOutPath string) + type ApplyJSON struct + func (v *ApplyJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *ApplyJSON) HelpPrompt() + func (v *ApplyJSON) Hooks() []terraform.Hook + func (v *ApplyJSON) Operation() Operation + func (v *ApplyJSON) Outputs(outputValues map[string]*states.OutputValue) + func (v *ApplyJSON) ResourceCount(stateOutPath string) + type JSONView struct + func NewJSONView(view *View) *JSONView + func (v *JSONView) ChangeSummary(cs *json.ChangeSummary) + func (v *JSONView) Diagnostics(diags tfdiags.Diagnostics) + func (v *JSONView) Hook(h json.Hook) + func (v *JSONView) Log(message string) + func (v *JSONView) Outputs(outputs json.Outputs) + func (v *JSONView) PlannedChange(c *json.ResourceInstanceChange) + func (v *JSONView) ResourceDrift(c *json.ResourceInstanceChange) + func (v *JSONView) StateDump(state string) + func (v *JSONView) Version() + type Operation interface + Cancelled func(planMode plans.Mode) + Diagnostics func(diags tfdiags.Diagnostics) + EmergencyDumpState func(stateFile *statefile.File) error + FatalInterrupt func() + Interrupted func() + Plan func(plan *plans.Plan, schemas *terraform.Schemas) + PlanNextStep func(planPath string) + PlannedChange func(change *plans.ResourceInstanceChangeSrc) + Stopping func() + func NewOperation(vt arguments.ViewType, inAutomation bool, view *View) Operation + type OperationHuman struct + func (v *OperationHuman) Cancelled(planMode plans.Mode) + func (v *OperationHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *OperationHuman) EmergencyDumpState(stateFile *statefile.File) error + func (v *OperationHuman) FatalInterrupt() + func (v *OperationHuman) Interrupted() + func (v *OperationHuman) Plan(plan *plans.Plan, schemas *terraform.Schemas) + func (v *OperationHuman) PlanNextStep(planPath string) + func (v *OperationHuman) PlannedChange(change *plans.ResourceInstanceChangeSrc) + func (v *OperationHuman) Stopping() + type OperationJSON struct + func (v *OperationJSON) Cancelled(planMode plans.Mode) + func (v *OperationJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *OperationJSON) EmergencyDumpState(stateFile *statefile.File) error + func (v *OperationJSON) FatalInterrupt() + func (v *OperationJSON) Interrupted() + func (v *OperationJSON) Plan(plan *plans.Plan, schemas *terraform.Schemas) + func (v *OperationJSON) PlanNextStep(planPath string) + func (v *OperationJSON) PlannedChange(change *plans.ResourceInstanceChangeSrc) + func (v *OperationJSON) Stopping() + type Output interface + Diagnostics func(diags tfdiags.Diagnostics) + Output func(name string, outputs map[string]*states.OutputValue) tfdiags.Diagnostics + func NewOutput(vt arguments.ViewType, view *View) Output + type OutputHuman struct + func (v *OutputHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *OutputHuman) Output(name string, outputs map[string]*states.OutputValue) tfdiags.Diagnostics + type OutputJSON struct + func (v *OutputJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *OutputJSON) Output(name string, outputs map[string]*states.OutputValue) tfdiags.Diagnostics + type OutputRaw struct + func (v *OutputRaw) Diagnostics(diags tfdiags.Diagnostics) + func (v *OutputRaw) Output(name string, outputs map[string]*states.OutputValue) tfdiags.Diagnostics + type Plan interface + Diagnostics func(diags tfdiags.Diagnostics) + HelpPrompt func() + Hooks func() []terraform.Hook + Operation func() Operation + func NewPlan(vt arguments.ViewType, view *View) Plan + type PlanHuman struct + func (v *PlanHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *PlanHuman) HelpPrompt() + func (v *PlanHuman) Hooks() []terraform.Hook + func (v *PlanHuman) Operation() Operation + type PlanJSON struct + func (v *PlanJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *PlanJSON) HelpPrompt() + func (v *PlanJSON) Hooks() []terraform.Hook + func (v *PlanJSON) Operation() Operation + type Refresh interface + Diagnostics func(diags tfdiags.Diagnostics) + HelpPrompt func() + Hooks func() []terraform.Hook + Operation func() Operation + Outputs func(outputValues map[string]*states.OutputValue) + func NewRefresh(vt arguments.ViewType, view *View) Refresh + type RefreshHuman struct + func (v *RefreshHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *RefreshHuman) HelpPrompt() + func (v *RefreshHuman) Hooks() []terraform.Hook + func (v *RefreshHuman) Operation() Operation + func (v *RefreshHuman) Outputs(outputValues map[string]*states.OutputValue) + type RefreshJSON struct + func (v *RefreshJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *RefreshJSON) HelpPrompt() + func (v *RefreshJSON) Hooks() []terraform.Hook + func (v *RefreshJSON) Operation() Operation + func (v *RefreshJSON) Outputs(outputValues map[string]*states.OutputValue) + type Show interface + Plan func(plan *plans.Plan, schemas *terraform.Schemas) + func NewShow(vt arguments.ViewType, view *View) Show + type ShowHuman struct + func (v *ShowHuman) Plan(plan *plans.Plan, schemas *terraform.Schemas) + type StateLocker interface + Locking func() + Unlocking func() + func NewStateLocker(vt arguments.ViewType, view *View) StateLocker + type StateLockerHuman struct + func (v *StateLockerHuman) Locking() + func (v *StateLockerHuman) Unlocking() + type Test interface + Diagnostics func(tfdiags.Diagnostics) + Results func(map[string]*moduletest.Suite) tfdiags.Diagnostics + func NewTest(base *View, args arguments.TestOutput) Test + type UiHook struct + func NewUiHook(view *View) *UiHook + func (h *UiHook) PostApply(addr addrs.AbsResourceInstance, gen states.Generation, newState cty.Value, ...) (terraform.HookAction, error) + func (h *UiHook) PostImportState(addr addrs.AbsResourceInstance, imported []providers.ImportedResource) (terraform.HookAction, error) + func (h *UiHook) PreApply(addr addrs.AbsResourceInstance, gen states.Generation, action plans.Action, ...) (terraform.HookAction, error) + func (h *UiHook) PreImportState(addr addrs.AbsResourceInstance, importID string) (terraform.HookAction, error) + func (h *UiHook) PreProvisionInstanceStep(addr addrs.AbsResourceInstance, typeName string) (terraform.HookAction, error) + func (h *UiHook) PreRefresh(addr addrs.AbsResourceInstance, gen states.Generation, priorState cty.Value) (terraform.HookAction, error) + func (h *UiHook) ProvisionOutput(addr addrs.AbsResourceInstance, typeName string, msg string) + type Validate interface + Diagnostics func(diags tfdiags.Diagnostics) + Results func(diags tfdiags.Diagnostics) int + func NewValidate(vt arguments.ViewType, view *View) Validate + type ValidateHuman struct + func (v *ValidateHuman) Diagnostics(diags tfdiags.Diagnostics) + func (v *ValidateHuman) Results(diags tfdiags.Diagnostics) int + type ValidateJSON struct + func (v *ValidateJSON) Diagnostics(diags tfdiags.Diagnostics) + func (v *ValidateJSON) Results(diags tfdiags.Diagnostics) int + type View struct + func NewView(streams *terminal.Streams) *View + func (v *View) Configure(view *arguments.View) + func (v *View) Diagnostics(diags tfdiags.Diagnostics) + func (v *View) HelpPrompt(command string) + func (v *View) RunningInAutomation() bool + func (v *View) SetConfigSources(cb func() map[string][]byte) + func (v *View) SetRunningInAutomation(new bool) *View