Documentation
¶
Index ¶
- Variables
- func GetAppIdToEnvIsMapping[T any](configArr []T, appIdSelector func(config T) int, ...) map[int][]int
- func IsCustomGitOpsRepo(deploymentConfigType string) bool
- type DeploymentConfigService
- type DeploymentConfigServiceImpl
- func (impl *DeploymentConfigServiceImpl) CheckIfURLAlreadyPresent(repoURL string) (bool, error)
- func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfigInBulk(tx *pg.Tx, configToBeCreated, configToBeUpdated []*bean.DeploymentConfig, ...) error
- func (impl *DeploymentConfigServiceImpl) FilterPipelinesByApplicationClusterIdAndNamespace(pipelines []pipelineConfig.Pipeline, applicationObjectClusterId int, ...) (pipelineConfig.Pipeline, error)
- func (impl *DeploymentConfigServiceImpl) GetAllArgoAppInfosByDeploymentAppNames(deploymentAppNames []string) ([]*bean.DevtronArgoCdAppInfo, error)
- func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetAndMigrateConfigIfAbsentForHelmApp(appId, envId 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) GetConfigsByAppIds(appIds []int) ([]*bean.DeploymentConfig, error)
- func (impl *DeploymentConfigServiceImpl) GetExternalReleaseType(appId, environmentId int) (bean.ExternalReleaseType, error)
- func (impl *DeploymentConfigServiceImpl) IsChartStoreAppManagedByArgoCd(appId int) (bool, error)
- func (impl *DeploymentConfigServiceImpl) UpdateChartLocationInDeploymentConfig(appId, envId, chartRefId int, userId int32, chartVersion string) error
- func (impl *DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( deploymentConfig.NewRepositoryImpl, wire.Bind(new(deploymentConfig.Repository), new(*deploymentConfig.RepositoryImpl)), read.NewDeploymentConfigReadServiceImpl, wire.Bind(new(read.DeploymentConfigReadService), new(*read.DeploymentConfigReadServiceImpl)), NewDeploymentConfigServiceImpl, wire.Bind(new(DeploymentConfigService), new(*DeploymentConfigServiceImpl)), )
Functions ¶
func GetAppIdToEnvIsMapping ¶
func IsCustomGitOpsRepo ¶
Types ¶
type DeploymentConfigService ¶
type DeploymentConfigService interface { CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error) CreateOrUpdateConfigInBulk(tx *pg.Tx, configToBeCreated, configToBeUpdated []*bean.DeploymentConfig, userId int32) error GetConfigForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error) GetAndMigrateConfigIfAbsentForDevtronApps(appId, envId int) (*bean.DeploymentConfig, error) GetConfigForHelmApps(appId, envId int) (*bean.DeploymentConfig, error) IsChartStoreAppManagedByArgoCd(appId int) (bool, error) GetConfigEvenIfInactive(appId, envId int) (*bean.DeploymentConfig, error) GetAndMigrateConfigIfAbsentForHelmApp(appId, envId int) (*bean.DeploymentConfig, error) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error GetConfigsByAppIds(appIds []int) ([]*bean.DeploymentConfig, error) UpdateChartLocationInDeploymentConfig(appId, envId, chartRefId int, userId int32, chartVersion string) error GetAllArgoAppInfosByDeploymentAppNames(deploymentAppNames []string) ([]*bean.DevtronArgoCdAppInfo, error) GetExternalReleaseType(appId, environmentId int) (bean.ExternalReleaseType, error) CheckIfURLAlreadyPresent(repoURL string) (bool, error) FilterPipelinesByApplicationClusterIdAndNamespace(pipelines []pipelineConfig.Pipeline, applicationObjectClusterId int, applicationObjectNamespace string) (pipelineConfig.Pipeline, 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, envConfigOverrideService read.EnvConfigOverrideService, environmentRepository repository.EnvironmentRepository, chartRefRepository chartRepoRepository.ChartRefRepository, deploymentConfigReadService read2.DeploymentConfigReadService, acdAuthConfig *util3.ACDAuthConfig, ) *DeploymentConfigServiceImpl
func (*DeploymentConfigServiceImpl) CheckIfURLAlreadyPresent ¶ added in v1.4.0
func (impl *DeploymentConfigServiceImpl) CheckIfURLAlreadyPresent(repoURL string) (bool, error)
func (*DeploymentConfigServiceImpl) CreateOrUpdateConfig ¶
func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfig(tx *pg.Tx, config *bean.DeploymentConfig, userId int32) (*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) CreateOrUpdateConfigInBulk ¶ added in v1.2.1
func (impl *DeploymentConfigServiceImpl) CreateOrUpdateConfigInBulk(tx *pg.Tx, configToBeCreated, configToBeUpdated []*bean.DeploymentConfig, userId int32) error
func (*DeploymentConfigServiceImpl) FilterPipelinesByApplicationClusterIdAndNamespace ¶ added in v1.4.0
func (impl *DeploymentConfigServiceImpl) FilterPipelinesByApplicationClusterIdAndNamespace(pipelines []pipelineConfig.Pipeline, applicationObjectClusterId int, applicationObjectNamespace string) (pipelineConfig.Pipeline, error)
func (*DeploymentConfigServiceImpl) GetAllArgoAppInfosByDeploymentAppNames ¶ added in v1.4.0
func (impl *DeploymentConfigServiceImpl) GetAllArgoAppInfosByDeploymentAppNames(deploymentAppNames []string) ([]*bean.DevtronArgoCdAppInfo, 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) 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) GetConfigsByAppIds ¶ added in v1.2.1
func (impl *DeploymentConfigServiceImpl) GetConfigsByAppIds(appIds []int) ([]*bean.DeploymentConfig, error)
func (*DeploymentConfigServiceImpl) GetExternalReleaseType ¶ added in v1.4.0
func (impl *DeploymentConfigServiceImpl) GetExternalReleaseType(appId, environmentId int) (bean.ExternalReleaseType, error)
func (*DeploymentConfigServiceImpl) IsChartStoreAppManagedByArgoCd ¶ added in v1.3.0
func (impl *DeploymentConfigServiceImpl) IsChartStoreAppManagedByArgoCd(appId int) (bool, error)
func (*DeploymentConfigServiceImpl) UpdateChartLocationInDeploymentConfig ¶ added in v1.4.0
func (impl *DeploymentConfigServiceImpl) UpdateChartLocationInDeploymentConfig(appId, envId, chartRefId int, userId int32, chartVersion string) error
func (*DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId ¶
func (impl *DeploymentConfigServiceImpl) UpdateRepoUrlForAppAndEnvId(repoURL string, appId, envId int) error
Click to show internal directories.
Click to hide internal directories.