deps

package
v0.5.4-0...-121c8a9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph map[string][]string

Graph represents the dependencies shared between triggers

func (Graph) CheckCircular

func (g Graph) CheckCircular()

CheckCircular checks for circular dependencies

func (Graph) CheckMissing

func (g Graph) CheckMissing(triggers []string)

CheckMissing checks for any missign triggers and prints warnings

func (Graph) Insert

func (g Graph) Insert(name string, deps []string)

Insert sets the dependencies for a given trigger

func (Graph) Print

func (g Graph) Print()

Print renders this graph to a "dot" format

func (Graph) Resolve

func (g Graph) Resolve(todo []string) (order []string)

Resolve finds the ideal ordering for a list of triggers

func (Graph) Validate

func (g Graph) Validate(triggers []string)

Validate checks the graph for any potential issues

Jump to

Keyboard shortcuts

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