@@ -2695,6 +2695,8 @@ lifecycle {
26952695var _ Hook = (* actionHookCapture )(nil )
26962696
26972697type actionHookCapture struct {
2698+ NilHook
2699+
26982700 mu * sync.Mutex
26992701 startActionHooks []HookActionIdentity
27002702 completeActionHooks []HookActionIdentity
@@ -2705,89 +2707,6 @@ func newActionHookCapture() actionHookCapture {
27052707 mu : & sync.Mutex {},
27062708 }
27072709}
2708-
2709- func (a * actionHookCapture ) PreApply (HookResourceIdentity , addrs.DeposedKey , plans.Action , cty.Value , cty.Value ) (HookAction , error ) {
2710- return HookActionContinue , nil
2711- }
2712-
2713- func (a * actionHookCapture ) PostApply (HookResourceIdentity , addrs.DeposedKey , cty.Value , error ) (HookAction , error ) {
2714- return HookActionContinue , nil
2715- }
2716-
2717- func (a * actionHookCapture ) PreDiff (HookResourceIdentity , addrs.DeposedKey , cty.Value , cty.Value ) (HookAction , error ) {
2718- return HookActionContinue , nil
2719- }
2720-
2721- func (a * actionHookCapture ) PostDiff (HookResourceIdentity , addrs.DeposedKey , plans.Action , cty.Value , cty.Value ) (HookAction , error ) {
2722- return HookActionContinue , nil
2723- }
2724-
2725- func (a * actionHookCapture ) PreProvisionInstance (HookResourceIdentity , cty.Value ) (HookAction , error ) {
2726- return HookActionContinue , nil
2727- }
2728-
2729- func (a * actionHookCapture ) PostProvisionInstance (HookResourceIdentity , cty.Value ) (HookAction , error ) {
2730- return HookActionContinue , nil
2731- }
2732-
2733- func (a * actionHookCapture ) PreProvisionInstanceStep (HookResourceIdentity , string ) (HookAction , error ) {
2734- return HookActionContinue , nil
2735- }
2736-
2737- func (a * actionHookCapture ) PostProvisionInstanceStep (HookResourceIdentity , string , error ) (HookAction , error ) {
2738- return HookActionContinue , nil
2739- }
2740-
2741- func (a * actionHookCapture ) ProvisionOutput (HookResourceIdentity , string , string ) {}
2742-
2743- func (a * actionHookCapture ) PreRefresh (HookResourceIdentity , addrs.DeposedKey , cty.Value ) (HookAction , error ) {
2744- return HookActionContinue , nil
2745- }
2746-
2747- func (a * actionHookCapture ) PostRefresh (HookResourceIdentity , addrs.DeposedKey , cty.Value , cty.Value ) (HookAction , error ) {
2748- return HookActionContinue , nil
2749- }
2750-
2751- func (a * actionHookCapture ) PreImportState (HookResourceIdentity , string ) (HookAction , error ) {
2752- return HookActionContinue , nil
2753- }
2754-
2755- func (a * actionHookCapture ) PostImportState (HookResourceIdentity , []providers.ImportedResource ) (HookAction , error ) {
2756- return HookActionContinue , nil
2757- }
2758-
2759- func (a * actionHookCapture ) PrePlanImport (HookResourceIdentity , cty.Value ) (HookAction , error ) {
2760- return HookActionContinue , nil
2761- }
2762-
2763- func (a * actionHookCapture ) PostPlanImport (HookResourceIdentity , []providers.ImportedResource ) (HookAction , error ) {
2764- return HookActionContinue , nil
2765- }
2766-
2767- func (a * actionHookCapture ) PreApplyImport (HookResourceIdentity , plans.ImportingSrc ) (HookAction , error ) {
2768- return HookActionContinue , nil
2769- }
2770-
2771- func (a * actionHookCapture ) PostApplyImport (HookResourceIdentity , plans.ImportingSrc ) (HookAction , error ) {
2772- return HookActionContinue , nil
2773- }
2774-
2775- func (a * actionHookCapture ) PreEphemeralOp (HookResourceIdentity , plans.Action ) (HookAction , error ) {
2776- return HookActionContinue , nil
2777- }
2778-
2779- func (a * actionHookCapture ) PostEphemeralOp (HookResourceIdentity , plans.Action , error ) (HookAction , error ) {
2780- return HookActionContinue , nil
2781- }
2782-
2783- func (a * actionHookCapture ) PreListQuery (HookResourceIdentity , cty.Value ) (HookAction , error ) {
2784- return HookActionContinue , nil
2785- }
2786-
2787- func (a * actionHookCapture ) PostListQuery (HookResourceIdentity , plans.QueryResults , int64 ) (HookAction , error ) {
2788- return HookActionContinue , nil
2789- }
2790-
27912710func (a * actionHookCapture ) StartAction (identity HookActionIdentity ) (HookAction , error ) {
27922711 a .mu .Lock ()
27932712 defer a .mu .Unlock ()
@@ -2805,9 +2724,3 @@ func (a *actionHookCapture) CompleteAction(identity HookActionIdentity, _ error)
28052724 a .completeActionHooks = append (a .completeActionHooks , identity )
28062725 return HookActionContinue , nil
28072726}
2808-
2809- func (a * actionHookCapture ) Stopping () {}
2810-
2811- func (a * actionHookCapture ) PostStateUpdate (* states.State ) (HookAction , error ) {
2812- return HookActionContinue , nil
2813- }
0 commit comments