v2

package
v2.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigsPerEnvironment

type ConfigsPerEnvironment map[string][]config.Config

ConfigsPerEnvironment is a map of environment to configs

type ConfigsPerType

type ConfigsPerType map[string][]config.Config

ConfigsPerType is a map of configType (api or schema id) to configs

type ConfigsPerTypePerEnvironments

type ConfigsPerTypePerEnvironments map[string]ConfigsPerType

ConfigsPerTypePerEnvironments is a map of environment to api to configs

type DependenciesPerEnvironment

type DependenciesPerEnvironment map[string][]string

DependenciesPerEnvironment is a map of environment to project ids

type DuplicateConfigIdentifierError

type DuplicateConfigIdentifierError struct {
	Location           coordinate.Coordinate           `json:"location"`
	EnvironmentDetails configErrors.EnvironmentDetails `json:"environmentDetails"`
}

func (DuplicateConfigIdentifierError) Coordinates

func (DuplicateConfigIdentifierError) Error

func (DuplicateConfigIdentifierError) LocationDetails

type EntitiesPerType

type EntitiesPerType map[string][]string

type Project

type Project struct {
	Id string

	// set to the name defined in manifest if this project is part of a grouping, else will be empty
	GroupId string

	Configs ConfigsPerTypePerEnvironments

	// map of environment to project ids
	Dependencies DependenciesPerEnvironment
}

func LoadProjects

func LoadProjects(fs afero.Fs, context ProjectLoaderContext) ([]Project, []error)

func (Project) HasDependencyOn

func (p Project) HasDependencyOn(environment string, project Project) bool

func (Project) String

func (p Project) String() string

type ProjectLoaderContext

type ProjectLoaderContext struct {
	KnownApis       map[string]struct{}
	WorkingDir      string
	Manifest        manifest.Manifest
	ParametersSerde map[string]parameter.ParameterSerDe
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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