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 { GetComponentInstance(string) *resolve.ComponentInstance CreateComponentInstance(*resolve.ComponentInstance) error UpdateComponentInstance(string, func(instance *resolve.ComponentInstance)) error DeleteComponentInstance(string) error GetUpdatedActualState() *resolve.PolicyResolution }
StateUpdater is an interface to process changes in actual state
func NewNoOpActionStateUpdater ¶
func NewNoOpActionStateUpdater(actualState *resolve.PolicyResolution) StateUpdater
NewNoOpActionStateUpdater creates a mock state updater for unit tests, which does not have an underlying object store to save changes to
Click to show internal directories.
Click to hide internal directories.