dependencies

package
v0.0.0-...-d6856c1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyProcessor

type DependencyProcessor struct {
	// contains filtered or unexported fields
}

DependencyProcessor resolves relations between intents based on Reactions

func NewDependencyProcessor

func NewDependencyProcessor(
	reactionMap Reactions,
) *DependencyProcessor

NewDependencyProcessor creates new DependencyProcessor

func (*DependencyProcessor) GetDependencies

func (d *DependencyProcessor) GetDependencies(
	loader intent.Loader,
	i intent.Intent,
	from string,
) map[string]intent.Intent

GetDependencies resolves dependent intents and returns them as a map uuid -> intent

type KindSet

type KindSet map[string]struct{}

KindSet Set of strings representing resource Kind

type Reactions

type Reactions map[string]map[string]KindSet

Reactions describes reactions between intents on create/update/delete event.

func ParseReactions

func ParseReactions(bytes []byte, prefix string) (Reactions, error)

ParseReactions parses reactions from file.

Jump to

Keyboard shortcuts

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