Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ func InitializeApp() (*App, error) {
wire.Bind(new(pipeline2.PipelineConfigRestHandler), new(*pipeline2.PipelineConfigRestHandlerImpl)),
router.NewPipelineRouterImpl,
wire.Bind(new(router.PipelineConfigRouter), new(*router.PipelineConfigRouterImpl)),
pipeline.NewDbPipelineOrchestrator,
wire.Bind(new(pipeline.DbPipelineOrchestrator), new(*pipeline.DbPipelineOrchestratorImpl)),
pipeline.NewCiCdPipelineOrchestrator,
wire.Bind(new(pipeline.CiCdPipelineOrchestrator), new(*pipeline.CiCdPipelineOrchestratorImpl)),
pipelineConfig.NewMaterialRepositoryImpl,
wire.Bind(new(pipelineConfig.MaterialRepository), new(*pipelineConfig.MaterialRepositoryImpl)),

Expand Down
22 changes: 11 additions & 11 deletions pkg/appWorkflow/AppWorkflowService.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ type AppWorkflowService interface {
}

type AppWorkflowServiceImpl struct {
Logger *zap.SugaredLogger
appWorkflowRepository appWorkflow.AppWorkflowRepository
dbPipelineOrchestrator pipeline.DbPipelineOrchestrator
ciPipelineRepository pipelineConfig.CiPipelineRepository
pipelineRepository pipelineConfig.PipelineRepository
Logger *zap.SugaredLogger
appWorkflowRepository appWorkflow.AppWorkflowRepository
ciCdPipelineOrchestrator pipeline.CiCdPipelineOrchestrator
ciPipelineRepository pipelineConfig.CiPipelineRepository
pipelineRepository pipelineConfig.PipelineRepository
}

type AppWorkflowDto struct {
Expand Down Expand Up @@ -87,13 +87,13 @@ type WorkflowComponentNamesDto struct {
CdPipelines []string `json:"cdPipelines"`
}

func NewAppWorkflowServiceImpl(logger *zap.SugaredLogger, appWorkflowRepository appWorkflow.AppWorkflowRepository, dbPipelineOrchestrator pipeline.DbPipelineOrchestrator, ciPipelineRepository pipelineConfig.CiPipelineRepository, pipelineRepository pipelineConfig.PipelineRepository) *AppWorkflowServiceImpl {
func NewAppWorkflowServiceImpl(logger *zap.SugaredLogger, appWorkflowRepository appWorkflow.AppWorkflowRepository, ciCdPipelineOrchestrator pipeline.CiCdPipelineOrchestrator, ciPipelineRepository pipelineConfig.CiPipelineRepository, pipelineRepository pipelineConfig.PipelineRepository) *AppWorkflowServiceImpl {
return &AppWorkflowServiceImpl{
Logger: logger,
appWorkflowRepository: appWorkflowRepository,
dbPipelineOrchestrator: dbPipelineOrchestrator,
ciPipelineRepository: ciPipelineRepository,
pipelineRepository: pipelineRepository,
Logger: logger,
appWorkflowRepository: appWorkflowRepository,
ciCdPipelineOrchestrator: ciCdPipelineOrchestrator,
ciPipelineRepository: ciPipelineRepository,
pipelineRepository: pipelineRepository,
}
}

Expand Down
Loading