{"modulePath":"github.com/devtron-labs/devtron","version":"v1.8.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package devtronApps\n\n## Variables\n\n```go\nvar DevtronAppsDeployTriggerWireSet = wire.NewSet(\n\tuserDeploymentRequest.WireSet,\n\tNewHandlerServiceImpl,\n\twire.Bind(new(HandlerService), new(*HandlerServiceImpl)),\n)\n```\n\n## Functions\n\n```go\nfunc ReplaceImageTagWithDigest(image, digest string) string\n```\n\n## Types\n\n```go\ntype FeasibilityManager interface {\n\tCheckFeasibility(triggerRequirementRequest *bean.TriggerRequirementRequestDto) error\n}\n```\n\n```go\ntype HandlerService interface {\n\tTriggerPostStage(request bean.CdTriggerRequest) (*bean4.ManifestPushTemplate, error)\n\tTriggerPreStage(request bean.CdTriggerRequest) (*bean4.ManifestPushTemplate, error)\n\n\tTriggerAutoCDOnPreStageSuccess(triggerContext bean.TriggerContext, cdPipelineId, ciArtifactId, workflowId int) error\n\n\tTriggerStageForBulk(triggerRequest bean.CdTriggerRequest) error\n\n\tManualCdTrigger(triggerContext bean.TriggerContext, overrideRequest *bean3.ValuesOverrideRequest, userMetadata *userBean.UserMetadata) (int, string, *bean4.ManifestPushTemplate, error)\n\tTriggerAutomaticDeployment(request bean.CdTriggerRequest) error\n\n\tTriggerRelease(ctx context.Context, overrideRequest *bean3.ValuesOverrideRequest, envDeploymentConfig *bean9.DeploymentConfig, triggeredAt time.Time, triggeredBy int32) (releaseNo int, manifestPushTemplate *bean4.ManifestPushTemplate, err error)\n\n\tCancelStage(workflowRunnerId int, forceAbort bool, userId int32) (int, error)\n\tDownloadCdWorkflowArtifacts(buildId int) (*os.File, error)\n\tGetRunningWorkflowLogs(environmentId int, pipelineId int, workflowId int, followLogs bool) (*bufio.Reader, func() error, error)\n}\n```\n\n```go\ntype HandlerServiceImpl struct {\n\tACDConfig *argocdServer.ACDConfig\n\n\tK8sUtil *util5.K8sServiceImpl\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHandlerServiceImpl(logger *zap.SugaredLogger,\n\tcdWorkflowCommonService cd.CdWorkflowCommonService,\n\tgitOpsManifestPushService publish.GitOpsPushService,\n\tgitOpsConfigReadService config.GitOpsConfigReadService,\n\targoK8sClient argocdServer.ArgoK8sClient,\n\tACDConfig *argocdServer.ACDConfig,\n\targoClientWrapperService argocdServer.ArgoClientWrapperService,\n\tpipelineStatusTimelineService status.PipelineStatusTimelineService,\n\tchartTemplateService util.ChartTemplateService,\n\tworkflowEventPublishService out.WorkflowEventPublishService,\n\tmanifestCreationService manifest.ManifestCreationService,\n\tdeployedConfigurationHistoryService history.DeployedConfigurationHistoryService,\n\tpipelineStageService pipeline.PipelineStageService,\n\tglobalPluginService plugin.GlobalPluginService,\n\tcustomTagService pipeline.CustomTagService,\n\tpluginInputVariableParser pipeline.PluginInputVariableParser,\n\tprePostCdScriptHistoryService history.PrePostCdScriptHistoryService,\n\tscopedVariableManager variables.ScopedVariableCMCSManager,\n\timageDigestPolicyService imageDigestPolicy.ImageDigestPolicyService,\n\tuserService user.UserService,\n\thelmAppService client2.HelmAppService,\n\tenforcerUtil rbac.EnforcerUtil,\n\tuserDeploymentRequestService service.UserDeploymentRequestService,\n\thelmAppClient gRPC.HelmAppClient,\n\teventFactory client.EventFactory,\n\teventClient client.EventClient,\n\tenvVariables *globalUtil.EnvironmentVariables,\n\tappRepository appRepository.AppRepository,\n\tciPipelineMaterialRepository pipelineConfig.CiPipelineMaterialRepository,\n\timageScanHistoryReadService read2.ImageScanHistoryReadService,\n\timageScanDeployInfoReadService read2.ImageScanDeployInfoReadService,\n\timageScanDeployInfoService security2.ImageScanDeployInfoService,\n\tpipelineRepository pipelineConfig.PipelineRepository,\n\tpipelineOverrideRepository chartConfig.PipelineOverrideRepository,\n\tmanifestPushConfigRepository repository.ManifestPushConfigRepository,\n\tchartRepository chartRepoRepository.ChartRepository,\n\tenvRepository repository2.EnvironmentRepository,\n\tcdWorkflowRepository pipelineConfig.CdWorkflowRepository,\n\tciWorkflowRepository pipelineConfig.CiWorkflowRepository,\n\tciArtifactRepository repository3.CiArtifactRepository,\n\tciTemplateService pipeline2.CiTemplateReadService,\n\tgitMaterialReadService read.GitMaterialReadService,\n\tappLabelRepository pipelineConfig.AppLabelRepository,\n\tciPipelineRepository pipelineConfig.CiPipelineRepository,\n\tappWorkflowRepository appWorkflow.AppWorkflowRepository,\n\tdockerArtifactStoreRepository repository4.DockerArtifactStoreRepository,\n\timageScanService security2.ImageScanService,\n\tK8sUtil *util5.K8sServiceImpl,\n\ttransactionUtilImpl *sql.TransactionUtilImpl,\n\tdeploymentConfigService common.DeploymentConfigService,\n\tciCdPipelineOrchestrator pipeline.CiCdPipelineOrchestrator,\n\tgitOperationService git.GitOperationService,\n\tattributeService attributes.AttributesService,\n\tclusterRepository repository5.ClusterRepository,\n\tcdWorkflowRunnerService cd.CdWorkflowRunnerService,\n\tclusterService cluster.ClusterService,\n\tciLogService pipeline.CiLogService,\n\tworkflowService executor.WorkflowService,\n\tblobConfigStorageService pipeline.BlobStorageConfigService,\n\tdeploymentEventHandler app.DeploymentEventHandler,\n\tasyncRunnable *async.Runnable,\n\tworkflowTriggerAuditService service2.WorkflowTriggerAuditService,\n\tfluxCdDeploymentService fluxcd.DeploymentService,\n\tworkflowStatusLatestService workflowStatusLatest.WorkflowStatusLatestService) (*HandlerServiceImpl, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) CancelStage(workflowRunnerId int, forceAbort bool, userId int32) (int, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) CheckFeasibility(triggerRequirementRequest *bean.TriggerRequirementRequestDto) error\n```\n\n```go\nfunc (impl *HandlerServiceImpl) DownloadCdWorkflowArtifacts(buildId int) (*os.File, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) GetRunningWorkflowLogs(environmentId int, pipelineId int, wfrId int, followLogs bool) (*bufio.Reader, func() error, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) ManualCdTrigger(triggerContext bean.TriggerContext, overrideRequest *bean3.ValuesOverrideRequest, userMetadata *userBean.UserMetadata) (int, string, *bean4.ManifestPushTemplate, error)\n```\nTODO: write a wrapper to handle auto and manual trigger\n\n```go\nfunc (impl *HandlerServiceImpl) ReserveImagesGeneratedAtPlugin(customTagId int, destinationImages []string) ([]int, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerAutoCDOnPreStageSuccess(triggerContext bean.TriggerContext, cdPipelineId, ciArtifactId, workflowId int) error\n```\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerAutomaticDeployment(request bean.CdTriggerRequest) error\n```\nTODO: write a wrapper to handle auto and manual trigger\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerCD(ctx context.Context, artifact *repository3.CiArtifact, cdWorkflowId, wfrId int, pipeline *pipelineConfig.Pipeline, envDeploymentConfig *bean9.DeploymentConfig, triggeredAt time.Time, triggeredBy int32) error\n```\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerPostStage(request bean.CdTriggerRequest) (*bean4.ManifestPushTemplate, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerPreStage(request bean.CdTriggerRequest) (*bean6.ManifestPushTemplate, error)\n```\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerRelease(ctx context.Context, overrideRequest *bean3.ValuesOverrideRequest,\n\tenvDeploymentConfig *bean9.DeploymentConfig, triggeredAt time.Time, triggeredBy int32) (releaseNo int, manifestPushTemplate *bean4.ManifestPushTemplate, err error)\n```\nTriggerRelease will trigger Install/Upgrade request for Devtron App releases synchronously\n\n```go\nfunc (impl *HandlerServiceImpl) TriggerStageForBulk(triggerRequest bean.CdTriggerRequest) error\n```\n\n","path":"github.com/devtron-labs/devtron/pkg/deployment/trigger/devtronApps","name":"devtronApps","synopsis":"","isRedistributable":true}
