mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-21 04:29:24 +08:00
chore: documented new methods
This commit is contained in:
@@ -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", "")
|
||||
|
Reference in New Issue
Block a user