topologysort

package
v0.0.16-dev-test-split... Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSortedConfigsForEnvironments

func GetSortedConfigsForEnvironments(projects []project.Project, environments []string) (map[string][]config.Config, []error)

Types

type CircualDependencyProjectSortError

type CircualDependencyProjectSortError struct {
	Environment string
	Project     string
	// slice of project ids
	DependsOn []string
}

func (CircualDependencyProjectSortError) Error

type CircularDependencyConfigSortError

type CircularDependencyConfigSortError struct {
	Config      coordinate.Coordinate
	Environment string
	DependsOn   []coordinate.Coordinate
}

func (CircularDependencyConfigSortError) Error

type CircularDependencyParameterSortError

type CircularDependencyParameterSortError struct {
	Config             coordinate.Coordinate
	EnvironmentDetails errors.EnvironmentDetails
	Parameter          string
	DependsOn          []parameter.ParameterReference
}

func (CircularDependencyParameterSortError) Coordinates

func (CircularDependencyParameterSortError) Error

func (CircularDependencyParameterSortError) LocationDetails

type ParameterWithName

type ParameterWithName struct {
	Name      string
	Parameter parameter.Parameter
}

func SortParameters

func SortParameters(group string, environment string, conf coordinate.Coordinate, parameters config.Parameters) ([]ParameterWithName, []error)

func (*ParameterWithName) IsReferencing

func (p *ParameterWithName) IsReferencing(config coordinate.Coordinate, param ParameterWithName) bool

type ProjectsPerEnvironment

type ProjectsPerEnvironment map[string][]project.Project

Jump to

Keyboard shortcuts

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