variable

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package variable is providing the necessary functions: * to calculate the build order of the variables * and to calculate the list of value for a given variable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Variables []string
}

func BuildOrder

func BuildOrder(variables map[string]*dashboard.Variable) ([]Group, error)

BuildOrder determinate which variable we have to build first (aka to perform the query). Here is the description of the algorithm followed:

1. First calculate which variable depend of which other variable 2. Then, thanks to the dependencies, we can create a dependency graph. 3. Then we have to determinate the build order.

Jump to

Keyboard shortcuts

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