actual

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: Apache-2.0 Imports: 4 Imported by: 15

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

Jump to

Keyboard shortcuts

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