Documentation ¶
Index ¶
- Variables
- type DeploymentTemplateHistoryService
- type DeploymentTemplateHistoryServiceImpl
- func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, envOverride *bean.EnvConfigOverride, ...) (*repository.DeploymentTemplateHistory, error)
- func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromEnvOverrideTemplate(envOverride *bean.EnvConfigOverride, tx *pg.Tx, IsAppMetricsEnabled bool, ...) (err error)
- func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromGlobalTemplate(chart *chartRepoRepository.Chart, tx *pg.Tx, IsAppMetricsEnabled bool) (err error)
- type DeploymentTemplateService
- type DeploymentTemplateServiceImpl
- type DeploymentTemplateValidationService
- type DeploymentTemplateValidationServiceImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var DeploymentTemplateWireSet = wire.NewSet( NewDeploymentTemplateServiceImpl, wire.Bind(new(DeploymentTemplateService), new(*DeploymentTemplateServiceImpl)), read.NewEnvConfigOverrideReadServiceImpl, wire.Bind(new(read.EnvConfigOverrideService), new(*read.EnvConfigOverrideReadServiceImpl)), NewDeploymentTemplateValidationServiceImpl, wire.Bind(new(DeploymentTemplateValidationService), new(*DeploymentTemplateValidationServiceImpl)), chartRef.NewChartRefServiceImpl, wire.Bind(new(chartRef.ChartRefService), new(*chartRef.ChartRefServiceImpl)), read.NewDeploymentTemplateHistoryReadServiceImpl, wire.Bind(new(read.DeploymentTemplateHistoryReadService), new(*read.DeploymentTemplateHistoryReadServiceImpl)), )
Functions ¶
This section is empty.
Types ¶
type DeploymentTemplateHistoryService ¶ added in v1.1.0
type DeploymentTemplateHistoryService interface { CreateDeploymentTemplateHistoryFromGlobalTemplate(chart *chartRepoRepository.Chart, tx *pg.Tx, IsAppMetricsEnabled bool) error CreateDeploymentTemplateHistoryFromEnvOverrideTemplate(envOverride *bean.EnvConfigOverride, tx *pg.Tx, IsAppMetricsEnabled bool, pipelineId int) error CreateDeploymentTemplateHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, envOverride *bean.EnvConfigOverride, renderedImageTemplate string, deployedOn time.Time, deployedBy int32) (*repository.DeploymentTemplateHistory, error) }
type DeploymentTemplateHistoryServiceImpl ¶ added in v1.1.0
type DeploymentTemplateHistoryServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeploymentTemplateHistoryServiceImpl ¶ added in v1.1.0
func NewDeploymentTemplateHistoryServiceImpl(logger *zap.SugaredLogger, deploymentTemplateHistoryRepository repository.DeploymentTemplateHistoryRepository, pipelineRepository pipelineConfig.PipelineRepository, chartRepository chartRepoRepository.ChartRepository, userService user.UserService, cdWorkflowRepository pipelineConfig.CdWorkflowRepository, scopedVariableManager variables.ScopedVariableManager, deployedAppMetricsService deployedAppMetrics.DeployedAppMetricsService, chartRefService chartRef.ChartRefService) *DeploymentTemplateHistoryServiceImpl
func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryForDeploymentTrigger ¶ added in v1.1.0
func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, envOverride *bean.EnvConfigOverride, renderedImageTemplate string, deployedOn time.Time, deployedBy int32) (*repository.DeploymentTemplateHistory, error)
func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromEnvOverrideTemplate ¶ added in v1.1.0
func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromEnvOverrideTemplate(envOverride *bean.EnvConfigOverride, tx *pg.Tx, IsAppMetricsEnabled bool, pipelineId int) (err error)
func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromGlobalTemplate ¶ added in v1.1.0
func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromGlobalTemplate(chart *chartRepoRepository.Chart, tx *pg.Tx, IsAppMetricsEnabled bool) (err error)
type DeploymentTemplateServiceImpl ¶
type DeploymentTemplateServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeploymentTemplateServiceImpl ¶
func NewDeploymentTemplateServiceImpl(logger *zap.SugaredLogger, chartRefService chartRef.ChartRefService, chartTemplateService util.ChartTemplateService, chartRepository chartRepoRepository.ChartRepository) *DeploymentTemplateServiceImpl
func (*DeploymentTemplateServiceImpl) BuildChartAndGetPath ¶
func (impl *DeploymentTemplateServiceImpl) BuildChartAndGetPath(appName string, envOverride *bean.EnvConfigOverride, ctx context.Context) (string, error)
type DeploymentTemplateValidationServiceImpl ¶
type DeploymentTemplateValidationServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeploymentTemplateValidationServiceImpl ¶
func NewDeploymentTemplateValidationServiceImpl(logger *zap.SugaredLogger, chartRefService chartRef.ChartRefService, scopedVariableManager variables.ScopedVariableManager) *DeploymentTemplateValidationServiceImpl
func (*DeploymentTemplateValidationServiceImpl) DeploymentTemplateValidate ¶
func (impl *DeploymentTemplateValidationServiceImpl) DeploymentTemplateValidate(ctx context.Context, template interface{}, chartRefId int, scope resourceQualifiers.Scope) (bool, error)
func (*DeploymentTemplateValidationServiceImpl) FlaggerCanaryEnabled ¶
func (impl *DeploymentTemplateValidationServiceImpl) FlaggerCanaryEnabled(values json.RawMessage) (bool, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.