Documentation
¶
Index ¶
- type DeploymentTemplateHistoryReadService
- type DeploymentTemplateHistoryReadServiceImpl
- func (impl *DeploymentTemplateHistoryReadServiceImpl) CheckIfHistoryExistsForPipelineIdAndWfrId(pipelineId, wfrId int) (historyId int, exists bool, err error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) CheckIfTriggerHistoryExistsForPipelineIdOnTime(pipelineId int, deployedOn time.Time) (deploymentTemplateHistoryId int, exists bool, err error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int) (*bean.HistoryDetailDto, error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryList(pipelineId, baseConfigId int) ([]*bean.DeployedHistoryComponentMetadataDto, error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedOnByDeploymentTemplateAndPipelineId(deploymentTemplateHistoryId, pipelineId int) (time.Time, error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) GetHistoryForDeployedTemplateById(ctx context.Context, id int, pipelineId int) (*bean.HistoryDetailDto, error)
- func (impl *DeploymentTemplateHistoryReadServiceImpl) GetTemplateHistoryModelForDeployedTemplateById(deploymentTemplateHistoryId, pipelineId int) (*repository2.DeploymentTemplateHistory, error)
- type EnvConfigOverrideReadServiceImpl
- func (impl *EnvConfigOverrideReadServiceImpl) ActiveEnvConfigOverride(appId, environmentId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) FindChartByAppIdAndEnvIdAndChartRefId(appId, targetEnvironmentId int, chartRefId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) FindChartForAppByAppIdAndEnvId(appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds(appId int, targetEnvironmentIds []int) (map[int]int, error)
- func (impl *EnvConfigOverrideReadServiceImpl) FindLatestChartForAppByAppIdAndEnvId(tx *pg.Tx, appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetAllOverridesForApp(ctx context.Context, appId int) ([]*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetByAppIdEnvIdAndChartRefId(appId, envId int, chartRefId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetByChartAndEnvironment(chartId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetByEnvironment(targetEnvironmentId int) ([]*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetByIdIncludingInactive(id int) (*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetEnvConfigByChartId(chartId int) ([]*bean.EnvConfigOverride, error)
- func (impl *EnvConfigOverrideReadServiceImpl) GetLatestEnvironmentProperties(appId, environmentId int) (environmentProperties *pipelineBean.EnvironmentProperties, err error)
- type EnvConfigOverrideService
- type EnvConfigOverrideServiceEnt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentTemplateHistoryReadService ¶
type DeploymentTemplateHistoryReadService interface { GetHistoryForDeployedTemplateById(ctx context.Context, id int, pipelineId int) (*bean.HistoryDetailDto, error) CheckIfHistoryExistsForPipelineIdAndWfrId(pipelineId, wfrId int) (historyId int, exists bool, err error) CheckIfTriggerHistoryExistsForPipelineIdOnTime(pipelineId int, deployedOn time.Time) (deploymentTemplateHistoryId int, exists bool, err error) GetDeployedHistoryList(pipelineId, baseConfigId int) ([]*bean.DeployedHistoryComponentMetadataDto, error) // used for rollback GetDeployedHistoryByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int) (*bean.HistoryDetailDto, error) GetTemplateHistoryModelForDeployedTemplateById(deploymentTemplateHistoryId, pipelineId int) (*repository2.DeploymentTemplateHistory, error) GetDeployedOnByDeploymentTemplateAndPipelineId(deploymentTemplateHistoryId, pipelineId int) (time.Time, error) }
type DeploymentTemplateHistoryReadServiceImpl ¶
type DeploymentTemplateHistoryReadServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeploymentTemplateHistoryReadServiceImpl ¶
func NewDeploymentTemplateHistoryReadServiceImpl( logger *zap.SugaredLogger, deploymentTemplateHistoryRepository repository2.DeploymentTemplateHistoryRepository, scopedVariableManager variables.ScopedVariableManager, ) *DeploymentTemplateHistoryReadServiceImpl
func (*DeploymentTemplateHistoryReadServiceImpl) CheckIfHistoryExistsForPipelineIdAndWfrId ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) CheckIfHistoryExistsForPipelineIdAndWfrId(pipelineId, wfrId int) (historyId int, exists bool, err error)
func (*DeploymentTemplateHistoryReadServiceImpl) CheckIfTriggerHistoryExistsForPipelineIdOnTime ¶
func (*DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryByPipelineIdAndWfrId ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int) (*bean.HistoryDetailDto, error)
func (*DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryList ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedHistoryList(pipelineId, baseConfigId int) ([]*bean.DeployedHistoryComponentMetadataDto, error)
func (*DeploymentTemplateHistoryReadServiceImpl) GetDeployedOnByDeploymentTemplateAndPipelineId ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) GetDeployedOnByDeploymentTemplateAndPipelineId(deploymentTemplateHistoryId, pipelineId int) (time.Time, error)
func (*DeploymentTemplateHistoryReadServiceImpl) GetHistoryForDeployedTemplateById ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) GetHistoryForDeployedTemplateById(ctx context.Context, id int, pipelineId int) (*bean.HistoryDetailDto, error)
func (*DeploymentTemplateHistoryReadServiceImpl) GetTemplateHistoryModelForDeployedTemplateById ¶
func (impl *DeploymentTemplateHistoryReadServiceImpl) GetTemplateHistoryModelForDeployedTemplateById(deploymentTemplateHistoryId, pipelineId int) (*repository2.DeploymentTemplateHistory, error)
type EnvConfigOverrideReadServiceImpl ¶
type EnvConfigOverrideReadServiceImpl struct {
// contains filtered or unexported fields
}
func NewEnvConfigOverrideReadServiceImpl ¶
func NewEnvConfigOverrideReadServiceImpl( logger *zap.SugaredLogger, environmentRepository repository.EnvironmentRepository, repository chartConfig.EnvConfigOverrideRepository, ) *EnvConfigOverrideReadServiceImpl
func (*EnvConfigOverrideReadServiceImpl) ActiveEnvConfigOverride ¶
func (impl *EnvConfigOverrideReadServiceImpl) ActiveEnvConfigOverride(appId, environmentId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) FindChartByAppIdAndEnvIdAndChartRefId ¶
func (impl *EnvConfigOverrideReadServiceImpl) FindChartByAppIdAndEnvIdAndChartRefId(appId, targetEnvironmentId int, chartRefId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) FindChartForAppByAppIdAndEnvId ¶
func (impl *EnvConfigOverrideReadServiceImpl) FindChartForAppByAppIdAndEnvId(appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds ¶
func (*EnvConfigOverrideReadServiceImpl) FindLatestChartForAppByAppIdAndEnvId ¶
func (impl *EnvConfigOverrideReadServiceImpl) FindLatestChartForAppByAppIdAndEnvId(tx *pg.Tx, appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetAllOverridesForApp ¶ added in v1.4.0
func (impl *EnvConfigOverrideReadServiceImpl) GetAllOverridesForApp(ctx context.Context, appId int) ([]*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetByAppIdEnvIdAndChartRefId ¶
func (impl *EnvConfigOverrideReadServiceImpl) GetByAppIdEnvIdAndChartRefId(appId, envId int, chartRefId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetByChartAndEnvironment ¶
func (impl *EnvConfigOverrideReadServiceImpl) GetByChartAndEnvironment(chartId, targetEnvironmentId int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetByEnvironment ¶
func (impl *EnvConfigOverrideReadServiceImpl) GetByEnvironment(targetEnvironmentId int) ([]*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetByIdIncludingInactive ¶
func (impl *EnvConfigOverrideReadServiceImpl) GetByIdIncludingInactive(id int) (*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetEnvConfigByChartId ¶
func (impl *EnvConfigOverrideReadServiceImpl) GetEnvConfigByChartId(chartId int) ([]*bean.EnvConfigOverride, error)
func (*EnvConfigOverrideReadServiceImpl) GetLatestEnvironmentProperties ¶ added in v1.8.0
func (impl *EnvConfigOverrideReadServiceImpl) GetLatestEnvironmentProperties(appId, environmentId int) (environmentProperties *pipelineBean.EnvironmentProperties, err error)
type EnvConfigOverrideService ¶
type EnvConfigOverrideService interface { GetByChartAndEnvironment(chartId, targetEnvironmentId int) (*bean.EnvConfigOverride, error) ActiveEnvConfigOverride(appId, environmentId int) (*bean.EnvConfigOverride, error) //successful env config GetByIdIncludingInactive(id int) (*bean.EnvConfigOverride, error) GetByEnvironment(targetEnvironmentId int) ([]*bean.EnvConfigOverride, error) GetEnvConfigByChartId(chartId int) ([]*bean.EnvConfigOverride, error) FindLatestChartForAppByAppIdAndEnvId(tx *pg.Tx, appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error) FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds(appId int, targetEnvironmentIds []int) (map[int]int, error) FindChartByAppIdAndEnvIdAndChartRefId(appId, targetEnvironmentId int, chartRefId int) (*bean.EnvConfigOverride, error) FindChartForAppByAppIdAndEnvId(appId, targetEnvironmentId int) (*bean.EnvConfigOverride, error) GetByAppIdEnvIdAndChartRefId(appId, envId int, chartRefId int) (*bean.EnvConfigOverride, error) // GetAllOverridesForApp will return all overrides []*bean.EnvConfigOverride for an app by appId // Note: // EnvConfigOverride.Chart is not populated, // as the chartRepoRepository.Chart contains the reference chart(in bytes). GetAllOverridesForApp(ctx context.Context, appId int) ([]*bean.EnvConfigOverride, error) GetLatestEnvironmentProperties(appId, environmentId int) (environmentProperties *pipelineBean.EnvironmentProperties, err error) EnvConfigOverrideServiceEnt }
type EnvConfigOverrideServiceEnt ¶ added in v1.7.0
type EnvConfigOverrideServiceEnt interface { }
Click to show internal directories.
Click to hide internal directories.