dependencies

package
v0.0.0-...-3cc3ff2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(manager specs.FlowInterface, dependencies specs.Dependencies, id string, unresolved Unresolved) error

Resolve resolves the given call dependencies and attempts to detect any circular dependencies

func ResolveFlows

func ResolveFlows(ctx *broker.Context, flows specs.FlowListInterface) error

ResolveFlows resolves all dependencies inside the given manifest

Types

type ErrCircularDependency

type ErrCircularDependency struct {
	Flow, From, To string
}

ErrCircularDependency is returned when circular dependency is detected.

func (ErrCircularDependency) Error

func (e ErrCircularDependency) Error() string

type Unresolved

type Unresolved map[string]struct{}

Unresolved represents a collection of unresolved references

Jump to

Keyboard shortcuts

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