-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored CdWorkflowWithArtifact struct to bean
- Loading branch information
Showing
6 changed files
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package bean | ||
|
||
import ( | ||
"github.com/devtron-labs/devtron/internal/sql/repository/imageTagging" | ||
"github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig" | ||
"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"` | ||
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 []pipelineConfig.CiPipelineMaterialResponse `json:"ciMaterials"` | ||
ImageReleaseTags []*repository.ImageTag `json:"imageReleaseTags"` | ||
ImageComment *repository.ImageComment `json:"imageComment"` | ||
RefCdWorkflowRunnerId int `json:"referenceCdWorkflowRunnerId"` | ||
} |