Documentation ¶
Index ¶
- func DeriveGroupName(env config.EnvironmentConfig, envName string) string
- func MapEnvironmentsToGroups(envs map[string]config.EnvironmentConfig) []*api.EnvironmentGroup
- func TransformArgocd(config config.EnvironmentConfigArgoCd) *api.EnvironmentConfig_ArgoCD
- func TransformSyncWindows(syncWindows []config.ArgoCdSyncWindow, appName string) ([]*api.Environment_Application_ArgoCD_SyncWindow, error)
- func TransformUpstream(upstream *config.EnvironmentConfigUpstream) *api.EnvironmentConfig_Upstream
- type EnvSortOrder
- type EnvironmentByDistance
- type EnvironmentGroupsByDistance
- type EnvsByName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveGroupName ¶
func DeriveGroupName(env config.EnvironmentConfig, envName string) string
either the groupName is set in the config, or we use the envName as a default
func MapEnvironmentsToGroups ¶
func MapEnvironmentsToGroups(envs map[string]config.EnvironmentConfig) []*api.EnvironmentGroup
func TransformArgocd ¶ added in v1.21.1
func TransformArgocd(config config.EnvironmentConfigArgoCd) *api.EnvironmentConfig_ArgoCD
func TransformSyncWindows ¶
func TransformSyncWindows(syncWindows []config.ArgoCdSyncWindow, appName string) ([]*api.Environment_Application_ArgoCD_SyncWindow, error)
func TransformUpstream ¶
func TransformUpstream(upstream *config.EnvironmentConfigUpstream) *api.EnvironmentConfig_Upstream
Types ¶
type EnvSortOrder ¶
type EnvironmentByDistance ¶
type EnvironmentByDistance []*api.Environment
func (EnvironmentByDistance) Len ¶
func (s EnvironmentByDistance) Len() int
func (EnvironmentByDistance) Less ¶
func (s EnvironmentByDistance) Less(i, j int) bool
func (EnvironmentByDistance) Swap ¶
func (s EnvironmentByDistance) Swap(i, j int)
type EnvironmentGroupsByDistance ¶
type EnvironmentGroupsByDistance []*api.EnvironmentGroup
func (EnvironmentGroupsByDistance) Len ¶
func (s EnvironmentGroupsByDistance) Len() int
func (EnvironmentGroupsByDistance) Less ¶
func (s EnvironmentGroupsByDistance) Less(i, j int) bool
func (EnvironmentGroupsByDistance) Swap ¶
func (s EnvironmentGroupsByDistance) Swap(i, j int)
type EnvsByName ¶
type EnvsByName map[string]*api.Environment
Click to show internal directories.
Click to hide internal directories.