feat(module): add PlanForce to Module interface with stubs
This commit is contained in:
@@ -19,6 +19,9 @@ func (c convergedModule) Detect(context.Context) (module.State, error) { return
|
||||
func (c convergedModule) Plan(context.Context, module.State) (module.Plan, error) {
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (c convergedModule) PlanForce(context.Context) (module.Plan, error) {
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (c convergedModule) Apply(context.Context, module.Plan, module.Reporter) error { return nil }
|
||||
func (c convergedModule) Verify(context.Context) error { return nil }
|
||||
|
||||
@@ -29,6 +32,9 @@ func (p pendingModule) Detect(context.Context) (module.State, error) { return ni
|
||||
func (p pendingModule) Plan(context.Context, module.State) (module.Plan, error) {
|
||||
return module.Plan{Actions: []module.Action{{Description: "do a thing"}}}, nil
|
||||
}
|
||||
func (p pendingModule) PlanForce(context.Context) (module.Plan, error) {
|
||||
return module.Plan{Actions: []module.Action{{Description: "do a thing"}}}, nil
|
||||
}
|
||||
func (p pendingModule) Apply(context.Context, module.Plan, module.Reporter) error { return nil }
|
||||
func (p pendingModule) Verify(context.Context) error { return nil }
|
||||
|
||||
@@ -41,6 +47,9 @@ func (d detectFailModule) Detect(context.Context) (module.State, error) {
|
||||
func (d detectFailModule) Plan(context.Context, module.State) (module.Plan, error) {
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (d detectFailModule) PlanForce(context.Context) (module.Plan, error) {
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (d detectFailModule) Apply(context.Context, module.Plan, module.Reporter) error { return nil }
|
||||
func (d detectFailModule) Verify(context.Context) error { return nil }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user