Documentation ¶
Overview ¶
Package actual defines a state updater, which reacts to changes in actual state done by engine applier. It allows, for example, to persist component instances to the underlying object store when components get created/updated by engine applier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateUpdater ¶
type StateUpdater interface { // Save will get called when a new object need to be created or existing object is changed in the actual state Save(obj runtime.Storable) error // Delete will get called when an existing object (ComponentInstance) is deleted from the actual state Delete(string) error }
StateUpdater is an interface to process changes in actual state, which get triggered from actions in state applier. When a new object gets created, changed or updated, state updater will persist those changes in the underlying store.
func NewNoOpActionStateUpdater ¶
func NewNoOpActionStateUpdater() StateUpdater
NewNoOpActionStateUpdater creates a mock state updater for unit tests, which does nothing
Click to show internal directories.
Click to hide internal directories.