chore: documented new methods

This commit is contained in:
Andrey Melnikov
2021-02-26 09:36:44 -08:00
parent d597ccc13f
commit 15de7c7e1f
4 changed files with 4 additions and 0 deletions

View File

@@ -273,6 +273,7 @@ func (s *WorkflowTemplateServer) ArchiveWorkflowTemplate(ctx context.Context, re
}, nil
}
// ListWorkflowTemplatesField returns a list of all the distinct values of a field from WorkflowTemplates
func (s *WorkflowTemplateServer) ListWorkflowTemplatesField(ctx context.Context, req *api.ListWorkflowTemplatesFieldRequest) (*api.ListWorkflowTemplatesFieldResponse, error) {
client := getClient(ctx)
allowed, err := auth.IsAuthorized(client, req.Namespace, "list", "onepanel.io", "workspaces", "")