@@ -44,9 +44,26 @@ import (
44
44
"github.com/devtron-labs/devtron/api/k8s"
45
45
"github.com/devtron-labs/devtron/api/module"
46
46
"github.com/devtron-labs/devtron/api/restHandler"
47
- pipeline2 "github.com/devtron-labs/devtron/api/restHandler/app"
47
+ "github.com/devtron-labs/devtron/api/restHandler/app/appInfo"
48
+ appList2 "github.com/devtron-labs/devtron/api/restHandler/app/appList"
49
+ pipeline3 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline"
50
+ pipeline2 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/configure"
51
+ "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/history"
52
+ status2 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/status"
53
+ "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/trigger"
54
+ "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/webhook"
55
+ "github.com/devtron-labs/devtron/api/restHandler/app/workflow"
48
56
"github.com/devtron-labs/devtron/api/restHandler/scopedVariable"
49
57
"github.com/devtron-labs/devtron/api/router"
58
+ app3 "github.com/devtron-labs/devtron/api/router/app"
59
+ appInfo2 "github.com/devtron-labs/devtron/api/router/app/appInfo"
60
+ "github.com/devtron-labs/devtron/api/router/app/appList"
61
+ pipeline5 "github.com/devtron-labs/devtron/api/router/app/pipeline"
62
+ pipeline4 "github.com/devtron-labs/devtron/api/router/app/pipeline/configure"
63
+ history2 "github.com/devtron-labs/devtron/api/router/app/pipeline/history"
64
+ status3 "github.com/devtron-labs/devtron/api/router/app/pipeline/status"
65
+ trigger2 "github.com/devtron-labs/devtron/api/router/app/pipeline/trigger"
66
+ workflow2 "github.com/devtron-labs/devtron/api/router/app/workflow"
50
67
"github.com/devtron-labs/devtron/api/router/pubsub"
51
68
"github.com/devtron-labs/devtron/api/server"
52
69
"github.com/devtron-labs/devtron/api/sse"
@@ -81,7 +98,6 @@ import (
81
98
resourceGroup "github.com/devtron-labs/devtron/internal/sql/repository/resourceGroup"
82
99
security2 "github.com/devtron-labs/devtron/internal/sql/repository/security"
83
100
"github.com/devtron-labs/devtron/internal/util"
84
- "github.com/devtron-labs/devtron/internal/util/ArgoUtil"
85
101
"github.com/devtron-labs/devtron/pkg/app"
86
102
"github.com/devtron-labs/devtron/pkg/app/status"
87
103
"github.com/devtron-labs/devtron/pkg/appClone"
@@ -184,8 +200,8 @@ func InitializeApp() (*App, error) {
184
200
wire .Bind (new (session2.ServiceClient ), new (* middleware.LoginService )),
185
201
186
202
sse .NewSSE ,
187
- router .NewPipelineTriggerRouter ,
188
- wire .Bind (new (router .PipelineTriggerRouter ), new (* router .PipelineTriggerRouterImpl )),
203
+ trigger2 .NewPipelineTriggerRouter ,
204
+ wire .Bind (new (trigger2 .PipelineTriggerRouter ), new (* trigger2 .PipelineTriggerRouterImpl )),
189
205
190
206
//---- pprof start ----
191
207
restHandler .NewPProfRestHandler ,
@@ -195,8 +211,8 @@ func InitializeApp() (*App, error) {
195
211
wire .Bind (new (router.PProfRouter ), new (* router.PProfRouterImpl )),
196
212
//---- pprof end ----
197
213
198
- restHandler .NewPipelineRestHandler ,
199
- wire .Bind (new (restHandler .PipelineTriggerRestHandler ), new (* restHandler .PipelineTriggerRestHandlerImpl )),
214
+ trigger .NewPipelineRestHandler ,
215
+ wire .Bind (new (trigger .PipelineTriggerRestHandler ), new (* trigger .PipelineTriggerRestHandlerImpl )),
200
216
app .GetAppServiceConfig ,
201
217
app .NewAppService ,
202
218
wire .Bind (new (app.AppService ), new (* app.AppServiceImpl )),
@@ -250,13 +266,25 @@ func InitializeApp() (*App, error) {
250
266
wire .Bind (new (pipeline.CdPipelineConfigService ), new (* pipeline.CdPipelineConfigServiceImpl )),
251
267
pipeline .NewDevtronAppConfigServiceImpl ,
252
268
wire .Bind (new (pipeline.DevtronAppConfigService ), new (* pipeline.DevtronAppConfigServiceImpl )),
269
+ pipeline3 .NewDevtronAppAutoCompleteRestHandlerImpl ,
270
+ wire .Bind (new (pipeline3.DevtronAppAutoCompleteRestHandler ), new (* pipeline3.DevtronAppAutoCompleteRestHandlerImpl )),
253
271
254
272
util5 .NewLoggingMiddlewareImpl ,
255
273
wire .Bind (new (util5.LoggingMiddleware ), new (* util5.LoggingMiddlewareImpl )),
256
274
pipeline2 .NewPipelineRestHandlerImpl ,
257
275
wire .Bind (new (pipeline2.PipelineConfigRestHandler ), new (* pipeline2.PipelineConfigRestHandlerImpl )),
258
- router .NewPipelineRouterImpl ,
259
- wire .Bind (new (router.PipelineConfigRouter ), new (* router.PipelineConfigRouterImpl )),
276
+
277
+ pipeline4 .NewPipelineRouterImpl ,
278
+ wire .Bind (new (pipeline4.PipelineConfigRouter ), new (* pipeline4.PipelineConfigRouterImpl )),
279
+ history2 .NewPipelineHistoryRouterImpl ,
280
+ wire .Bind (new (history2.PipelineHistoryRouter ), new (* history2.PipelineHistoryRouterImpl )),
281
+ status3 .NewPipelineStatusRouterImpl ,
282
+ wire .Bind (new (status3.PipelineStatusRouter ), new (* status3.PipelineStatusRouterImpl )),
283
+ pipeline5 .NewDevtronAppAutoCompleteRouterImpl ,
284
+ wire .Bind (new (pipeline5.DevtronAppAutoCompleteRouter ), new (* pipeline5.DevtronAppAutoCompleteRouterImpl )),
285
+ workflow2 .NewAppWorkflowRouterImpl ,
286
+ wire .Bind (new (workflow2.AppWorkflowRouter ), new (* workflow2.AppWorkflowRouterImpl )),
287
+
260
288
pipeline .NewCiCdPipelineOrchestrator ,
261
289
wire .Bind (new (pipeline.CiCdPipelineOrchestrator ), new (* pipeline.CiCdPipelineOrchestratorImpl )),
262
290
pipelineConfig .NewMaterialRepositoryImpl ,
@@ -305,10 +333,15 @@ func InitializeApp() (*App, error) {
305
333
pipeline .NewGitRegistryConfigImpl ,
306
334
wire .Bind (new (pipeline.GitRegistryConfig ), new (* pipeline.GitRegistryConfigImpl )),
307
335
308
- router .NewAppListingRouterImpl ,
309
- wire .Bind (new (router.AppListingRouter ), new (* router.AppListingRouterImpl )),
310
- restHandler .NewAppListingRestHandlerImpl ,
311
- wire .Bind (new (restHandler.AppListingRestHandler ), new (* restHandler.AppListingRestHandlerImpl )),
336
+ appList .NewAppFilteringRouterImpl ,
337
+ wire .Bind (new (appList.AppFilteringRouter ), new (* appList.AppFilteringRouterImpl )),
338
+ appList2 .NewAppFilteringRestHandlerImpl ,
339
+ wire .Bind (new (appList2.AppFilteringRestHandler ), new (* appList2.AppFilteringRestHandlerImpl )),
340
+
341
+ appList .NewAppListingRouterImpl ,
342
+ wire .Bind (new (appList.AppListingRouter ), new (* appList.AppListingRouterImpl )),
343
+ appList2 .NewAppListingRestHandlerImpl ,
344
+ wire .Bind (new (appList2.AppListingRestHandler ), new (* appList2.AppListingRestHandlerImpl )),
312
345
app .NewAppListingServiceImpl ,
313
346
wire .Bind (new (app.AppListingService ), new (* app.AppListingServiceImpl )),
314
347
repository .NewAppListingRepositoryImpl ,
@@ -358,28 +391,9 @@ func InitializeApp() (*App, error) {
358
391
repository2 .NewServiceClientImpl ,
359
392
wire .Bind (new (repository2.ServiceClient ), new (* repository2.ServiceClientImpl )),
360
393
wire .Bind (new (connector.Pump ), new (* connector.PumpImpl )),
361
- restHandler .NewArgoApplicationRestHandlerImpl ,
362
- wire .Bind (new (restHandler.ArgoApplicationRestHandler ), new (* restHandler.ArgoApplicationRestHandlerImpl )),
363
- router .NewApplicationRouterImpl ,
364
- wire .Bind (new (router.ApplicationRouter ), new (* router.ApplicationRouterImpl )),
394
+
365
395
//app.GetConfig,
366
396
367
- router .NewCDRouterImpl ,
368
- wire .Bind (new (router.CDRouter ), new (* router.CDRouterImpl )),
369
- restHandler .NewCDRestHandlerImpl ,
370
- wire .Bind (new (restHandler.CDRestHandler ), new (* restHandler.CDRestHandlerImpl )),
371
-
372
- ArgoUtil .GetArgoConfig ,
373
- ArgoUtil .NewArgoSession ,
374
- ArgoUtil .NewResourceServiceImpl ,
375
- wire .Bind (new (ArgoUtil.ResourceService ), new (* ArgoUtil.ResourceServiceImpl )),
376
- //ArgoUtil.NewApplicationServiceImpl,
377
- //wire.Bind(new(ArgoUtil.ApplicationService), new(ArgoUtil.ApplicationServiceImpl)),
378
- //ArgoUtil.NewRepositoryService,
379
- //wire.Bind(new(ArgoUtil.RepositoryService), new(ArgoUtil.RepositoryServiceImpl)),
380
-
381
- //ArgoUtil.NewClusterServiceImpl,
382
- //wire.Bind(new(ArgoUtil.ClusterService), new(ArgoUtil.ClusterServiceImpl)),
383
397
pipeline .GetEcrConfig ,
384
398
//otel.NewOtelTracingServiceImpl,
385
399
//wire.Bind(new(otel.OtelTracingService), new(*otel.OtelTracingServiceImpl)),
@@ -513,8 +527,8 @@ func InitializeApp() (*App, error) {
513
527
appStoreRestHandler .NewAppStoreRouterImpl ,
514
528
wire .Bind (new (appStoreRestHandler.AppStoreRouter ), new (* appStoreRestHandler.AppStoreRouterImpl )),
515
529
516
- restHandler .NewAppWorkflowRestHandlerImpl ,
517
- wire .Bind (new (restHandler .AppWorkflowRestHandler ), new (* restHandler .AppWorkflowRestHandlerImpl )),
530
+ workflow .NewAppWorkflowRestHandlerImpl ,
531
+ wire .Bind (new (workflow .AppWorkflowRestHandler ), new (* workflow .AppWorkflowRestHandlerImpl )),
518
532
519
533
appWorkflow .NewAppWorkflowServiceImpl ,
520
534
wire .Bind (new (appWorkflow.AppWorkflowService ), new (* appWorkflow.AppWorkflowServiceImpl )),
@@ -704,13 +718,15 @@ func InitializeApp() (*App, error) {
704
718
wire .Bind (new (repository.WebhookEventDataRepository ), new (* repository.WebhookEventDataRepositoryImpl )),
705
719
pipeline .NewWebhookEventDataConfigImpl ,
706
720
wire .Bind (new (pipeline.WebhookEventDataConfig ), new (* pipeline.WebhookEventDataConfigImpl )),
707
- restHandler .NewWebhookDataRestHandlerImpl ,
708
- wire .Bind (new (restHandler .WebhookDataRestHandler ), new (* restHandler .WebhookDataRestHandlerImpl )),
721
+ webhook .NewWebhookDataRestHandlerImpl ,
722
+ wire .Bind (new (webhook .WebhookDataRestHandler ), new (* webhook .WebhookDataRestHandlerImpl )),
709
723
710
- router .NewAppRouterImpl ,
711
- wire .Bind (new (router.AppRouter ), new (* router.AppRouterImpl )),
712
- restHandler .NewAppRestHandlerImpl ,
713
- wire .Bind (new (restHandler.AppRestHandler ), new (* restHandler.AppRestHandlerImpl )),
724
+ app3 .NewAppRouterImpl ,
725
+ wire .Bind (new (app3.AppRouter ), new (* app3.AppRouterImpl )),
726
+ appInfo2 .NewAppInfoRouterImpl ,
727
+ wire .Bind (new (appInfo2.AppInfoRouter ), new (* appInfo2.AppInfoRouterImpl )),
728
+ appInfo .NewAppInfoRestHandlerImpl ,
729
+ wire .Bind (new (appInfo.AppInfoRestHandler ), new (* appInfo.AppInfoRestHandlerImpl )),
714
730
715
731
app .NewAppCrudOperationServiceImpl ,
716
732
wire .Bind (new (app.AppCrudOperationService ), new (* app.AppCrudOperationServiceImpl )),
@@ -727,8 +743,8 @@ func InitializeApp() (*App, error) {
727
743
// util2.NewGoJsonSchemaCustomFormatChecker,
728
744
729
745
//history starts
730
- restHandler .NewPipelineHistoryRestHandlerImpl ,
731
- wire .Bind (new (restHandler .PipelineHistoryRestHandler ), new (* restHandler .PipelineHistoryRestHandlerImpl )),
746
+ history .NewPipelineHistoryRestHandlerImpl ,
747
+ wire .Bind (new (history .PipelineHistoryRestHandler ), new (* history .PipelineHistoryRestHandlerImpl )),
732
748
733
749
repository3 .NewConfigMapHistoryRepositoryImpl ,
734
750
wire .Bind (new (repository3.ConfigMapHistoryRepository ), new (* repository3.ConfigMapHistoryRepositoryImpl )),
@@ -817,8 +833,8 @@ func InitializeApp() (*App, error) {
817
833
cron .NewCiTriggerCronImpl ,
818
834
wire .Bind (new (cron.CiTriggerCron ), new (* cron.CiTriggerCronImpl )),
819
835
820
- restHandler .NewPipelineStatusTimelineRestHandlerImpl ,
821
- wire .Bind (new (restHandler .PipelineStatusTimelineRestHandler ), new (* restHandler .PipelineStatusTimelineRestHandlerImpl )),
836
+ status2 .NewPipelineStatusTimelineRestHandlerImpl ,
837
+ wire .Bind (new (status2 .PipelineStatusTimelineRestHandler ), new (* status2 .PipelineStatusTimelineRestHandlerImpl )),
822
838
823
839
status .NewPipelineStatusTimelineServiceImpl ,
824
840
wire .Bind (new (status.PipelineStatusTimelineService ), new (* status.PipelineStatusTimelineServiceImpl )),
0 commit comments