Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionOverConfig ¶ added in v2.8.0
ActionOverConfig is a function that will be performed over each config that is part of a project via a Project.ForEveryConfigDo method
type ConfigTypeName ¶ added in v2.8.0
type ConfigTypeName = string
type ConfigsPerEnvironment ¶
type ConfigsPerEnvironment map[EnvironmentName][]config.Config
ConfigsPerEnvironment is a map of EnvironmentName to configs. This is a flattened version of ConfigsPerTypePerEnvironments
type ConfigsPerType ¶
type ConfigsPerType map[ConfigTypeName][]config.Config
ConfigsPerType is a map of ConfigTypeName string (e.g. API ID, settings schema, automation resource, ...) to configs of that type
type ConfigsPerTypePerEnvironments ¶
type ConfigsPerTypePerEnvironments map[EnvironmentName]ConfigsPerType
ConfigsPerTypePerEnvironments is a map of EnvironmentName to a ConfigsPerType map
type DependenciesPerEnvironment ¶
type DependenciesPerEnvironment map[EnvironmentName][]ProjectID
DependenciesPerEnvironment is a map of EnvironmentName to project IDs
type DuplicateConfigIdentifierError ¶
type DuplicateConfigIdentifierError struct { Location coordinate.Coordinate `json:"location"` EnvironmentDetails configErrors.EnvironmentDetails `json:"environmentDetails"` }
func (DuplicateConfigIdentifierError) Coordinates ¶
func (e DuplicateConfigIdentifierError) Coordinates() coordinate.Coordinate
func (DuplicateConfigIdentifierError) Error ¶
func (e DuplicateConfigIdentifierError) Error() string
func (DuplicateConfigIdentifierError) LocationDetails ¶
func (e DuplicateConfigIdentifierError) LocationDetails() configErrors.EnvironmentDetails
type EnvironmentName ¶ added in v2.8.0
type EnvironmentName = 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 are the configurations within this Project Configs ConfigsPerTypePerEnvironments // Dependencies of this project to other projects Dependencies DependenciesPerEnvironment }
func LoadProjects ¶
func LoadProjects(fs afero.Fs, context ProjectLoaderContext) ([]Project, []error)
func (Project) ForEveryConfigDo ¶ added in v2.8.0
func (p Project) ForEveryConfigDo(actions ...ActionOverConfig)
ForEveryConfigDo executes the given ActionOverConfig actions for each configuration defined in the project for each environment Actions can not modify the configs inside the Project.
func (Project) ForEveryConfigInEnvironmentDo ¶ added in v2.8.0
func (p Project) ForEveryConfigInEnvironmentDo(environment string, actions ...ActionOverConfig)
ForEveryConfigInEnvironmentDo executes the given ActionOverConfig actions for each configuration defined in the project for a given environment. It behaves like ForEveryConfigDo just limited to a single environment. Actions can not modify the configs inside the Project.
func (Project) HasDependencyOn ¶
HasDependencyOn returns whether the project it is called on, has a dependency on the given project, for the given environment