Documentation ¶
Index ¶
- func ConvertDeploymentConfigDTOToDbObj(config *bean.DeploymentConfig) *deploymentConfig.DeploymentConfig
- func ConvertDeploymentConfigDbObjToDTO(dbObj *deploymentConfig.DeploymentConfig) *bean.DeploymentConfig
- func GetAppIdToEnvIsMapping[T any](configArr []T, appIdSelector func(config T) int, ...) map[int][]int
- func GetDeploymentConfigType(isCustomGitOpsRepo bool) string
- func IsCustomGitOpsRepo(deploymentConfigType string) bool
- type DeploymentConfigService
- type DeploymentConfigServiceImpl
- func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForHelmApp(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetAppLevelConfigForDevtronApp(appId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetConfigDBObj(appId, envId int) (*deploymentConfig.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetConfigEvenIfInactive(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetConfigForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetConfigForHelmApps(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetDeploymentAppTypeForCDInBulk(pipelines []*pipelineConfig.Pipeline) (map[int]string, error)
- func (impl *DeploymentConfigServiceImpl) IsDeploymentConfigUsed() bool
- func (impl *DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDeploymentConfigDTOToDbObj ¶
func ConvertDeploymentConfigDTOToDbObj(config *bean.DeploymentConfig) *deploymentConfig.DeploymentConfig
func ConvertDeploymentConfigDbObjToDTO ¶
func ConvertDeploymentConfigDbObjToDTO(dbObj *deploymentConfig.DeploymentConfig) *bean.DeploymentConfig
func GetAppIdToEnvIsMapping ¶
func GetDeploymentConfigType ¶
func IsCustomGitOpsRepo ¶
Types ¶
type DeploymentConfigService ¶
type DeploymentConfigService interface { CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error) IsDeploymentConfigUsed() bool GetConfigForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error) GetAndMigrateConfigIfAbsentForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error) GetConfigForHelmApps(appId, envId int) (*bean.DeploymentConfig, error) GetConfigEvenIfInactive(appId, envId int) (*bean.DeploymentConfig, error) GetAndMigrateConfigIfAbsentForHelmApp(appId, envId int) (*bean.DeploymentConfig, error) GetAppLevelConfigForDevtronApp(appId int) (*bean.DeploymentConfig, error) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error GetDeploymentAppTypeForCDInBulk(pipelines []*pipelineConfig.Pipeline) (map[int]string, error) }
type DeploymentConfigServiceImpl ¶
type DeploymentConfigServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeploymentConfigServiceImpl ¶
func NewDeploymentConfigServiceImpl( deploymentConfigRepository deploymentConfig.Repository, logger *zap.SugaredLogger, chartRepository chartRepoRepository.ChartRepository, pipelineRepository pipelineConfig.PipelineRepository, appRepository appRepository.AppRepository, installedAppReadService installedAppReader.InstalledAppReadServiceEA, envVariables *util.EnvironmentVariables, ) *DeploymentConfigServiceImpl
func (*DeploymentConfigServiceImpl) CreateOrUpdateConfig ¶
func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForDevtronApps ¶
func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForHelmApp ¶
func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForHelmApp(appId, envId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetAppLevelConfigForDevtronApp ¶
func (impl *DeploymentConfigServiceImpl) GetAppLevelConfigForDevtronApp(appId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetConfigDBObj ¶
func (impl *DeploymentConfigServiceImpl) GetConfigDBObj(appId, envId int) (*deploymentConfig.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetConfigEvenIfInactive ¶
func (impl *DeploymentConfigServiceImpl) GetConfigEvenIfInactive(appId, envId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetConfigForDevtronApps ¶
func (impl *DeploymentConfigServiceImpl) GetConfigForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetConfigForHelmApps ¶
func (impl *DeploymentConfigServiceImpl) GetConfigForHelmApps(appId, envId int) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetDeploymentAppTypeForCDInBulk ¶
func (impl *DeploymentConfigServiceImpl) GetDeploymentAppTypeForCDInBulk(pipelines []*pipelineConfig.Pipeline) (map[int]string, error)
func (*DeploymentConfigServiceImpl) IsDeploymentConfigUsed ¶
func (impl *DeploymentConfigServiceImpl) IsDeploymentConfigUsed() bool
func (*DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId ¶
func (impl *DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error
Click to show internal directories.
Click to hide internal directories.