-
Notifications
You must be signed in to change notification settings - Fork 527
/
Copy pathCdHandlerBean.go
41 lines (39 loc) · 2.78 KB
/
CdHandlerBean.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package bean
import (
"github.com/devtron-labs/common-lib/utils/bean"
"github.com/devtron-labs/devtron/internal/sql/repository/imageTagging"
"github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig"
buildBean "github.com/devtron-labs/devtron/pkg/build/pipeline/bean"
bean2 "github.com/devtron-labs/devtron/pkg/pipeline/workflowStatus/bean"
"time"
)
type CdWorkflowWithArtifact struct {
Id int `json:"id"`
CdWorkflowId int `json:"cd_workflow_id"`
Name string `json:"name"`
Status string `json:"status"`
PodStatus string `json:"pod_status"`
Message string `json:"message"`
StartedOn time.Time `json:"started_on"`
FinishedOn time.Time `json:"finished_on"`
PipelineId int `json:"pipeline_id"`
Namespace string `json:"namespace"`
LogFilePath string `json:"log_file_path"`
TriggeredBy int32 `json:"triggered_by"`
EmailId string `json:"email_id"`
Image string `json:"image"`
TargetPlatforms []*bean.TargetPlatform `json:"targetPlatforms"`
MaterialInfo string `json:"material_info,omitempty"`
DataSource string `json:"data_source,omitempty"`
CiArtifactId int `json:"ci_artifact_id,omitempty"`
IsArtifactUploaded bool `json:"isArtifactUploaded"`
WorkflowType string `json:"workflow_type,omitempty"`
ExecutorType string `json:"executor_type,omitempty"`
BlobStorageEnabled bool `json:"blobStorageEnabled"`
GitTriggers map[int]pipelineConfig.GitCommit `json:"gitTriggers"`
CiMaterials []buildBean.CiPipelineMaterialResponse `json:"ciMaterials"`
ImageReleaseTags []*repository.ImageTag `json:"imageReleaseTags"`
ImageComment *repository.ImageComment `json:"imageComment"`
RefCdWorkflowRunnerId int `json:"referenceCdWorkflowRunnerId"`
WorkflowExecutionStage map[string][]*bean2.WorkflowStageDto `json:"workflowExecutionStages"`
}