utils

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultEditorRole added in v0.42.0

func DefaultEditorRole(projectName string) *v1.Role

func DefaultOwnerRole added in v0.42.0

func DefaultOwnerRole(projectName string) *v1.Role

func DefaultOwnerRoleBinding added in v0.42.0

func DefaultOwnerRoleBinding(projectName string, username string) *v1.RoleBinding

func DefaultViewerRole added in v0.42.0

func DefaultViewerRole(projectName string) *v1.Role

Types

type VariableGroup

type VariableGroup struct {
	Variables []string
}

func BuildVariableOrder

func BuildVariableOrder(variables []dashboard.Variable, projectVariables []*v1.Variable, globalVariables []*v1.GlobalVariable) ([]VariableGroup, error)

BuildVariableOrder 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 on others 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