Versions in this module Expand all Collapse all v0 v0.0.1 Aug 24, 2021 Changes in this version + type Handler func(ctx context.Context, info *ReconcileInfo, instance interface{}) (StateType, ctrl.Result, error) + type Instance interface + GetState func() StateType + SetError func(err error) + SetState func(state StateType) + type Machine struct + func New(info *ReconcileInfo, instance Instance, handlers map[StateType]Handler) Machine + func (m *Machine) Reconcile(ctx context.Context) (bool, ctrl.Result, error) + type ReconcileInfo struct + Client client.Client + Logger logr.Logger + type StateType string