mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-30 08:16:23 +08:00
Adding an exposed method for apiWorkflowExecution
This commit is contained in:
@@ -22,6 +22,10 @@ func NewWorkflowServer() *WorkflowServer {
|
||||
return &WorkflowServer{}
|
||||
}
|
||||
|
||||
func GenApiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecution) {
|
||||
return apiWorkflowExecution(wf)
|
||||
}
|
||||
|
||||
func apiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecution) {
|
||||
workflow = &api.WorkflowExecution{
|
||||
CreatedAt: wf.CreatedAt.Format(time.RFC3339),
|
||||
|
||||
Reference in New Issue
Block a user