mapper

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 TransformSyncWindows

func TransformSyncWindows(syncWindows []config.ArgoCdSyncWindow, appName string) ([]*api.Environment_Application_ArgoCD_SyncWindow, error)

Types

type EnvSortOrder

type EnvSortOrder = map[string]int

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 (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

Jump to

Keyboard shortcuts

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