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