mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
29 lines
948 B
Go
29 lines
948 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const CollectionNameWorkflowRun = "workflow_run"
|
|
|
|
type WorkflowRun struct {
|
|
Meta
|
|
WorkflowId string `json:"workflowId" db:"workflowId"`
|
|
Status WorkflowRunStatusType `json:"status" db:"status"`
|
|
Trigger WorkflowTriggerType `json:"trigger" db:"trigger"`
|
|
StartedAt time.Time `json:"startedAt" db:"startedAt"`
|
|
EndedAt time.Time `json:"endedAt" db:"endedAt"`
|
|
Detail *WorkflowNode `json:"detail" db:"detail"`
|
|
Error string `json:"error" db:"error"`
|
|
}
|
|
|
|
type WorkflowRunStatusType string
|
|
|
|
const (
|
|
WorkflowRunStatusTypePending WorkflowRunStatusType = "pending"
|
|
WorkflowRunStatusTypeRunning WorkflowRunStatusType = "running"
|
|
WorkflowRunStatusTypeSucceeded WorkflowRunStatusType = "succeeded"
|
|
WorkflowRunStatusTypeFailed WorkflowRunStatusType = "failed"
|
|
WorkflowRunStatusTypeCanceled WorkflowRunStatusType = "canceled"
|
|
)
|