actual

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL