add ListWorkflowTemplateVersions

This commit is contained in:
rushtehrani
2019-12-12 17:54:45 -08:00
parent 87c9d20f4d
commit b0f150a49b
9 changed files with 409 additions and 41 deletions

View File

@@ -46,3 +46,12 @@ func (r *ResourceManager) GetWorkflowTemplate(namespace, uid string) (workflowTe
return
}
func (r *ResourceManager) ListWorkflowTemplateVersions(namespace, uid string) (workflowTemplateVersions []*model.WorkflowTemplate, err error) {
workflowTemplateVersions, err = r.workflowRepository.ListWorkflowTemplateVersions(uid)
if err != nil {
return nil, util.NewUserError(codes.NotFound, "Workflow template not found.")
}
return
}