mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-25 06:20:21 +08:00
chore: documented new methods
This commit is contained in:
@@ -580,6 +580,7 @@ func (s *WorkflowServer) UpdateWorkflowExecutionMetrics(ctx context.Context, req
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
// ListWorkflowExecutionsField returns a list of all the distinct values of a field from WorkflowExecutions
|
||||
func (s *WorkflowServer) ListWorkflowExecutionsField(ctx context.Context, req *api.ListWorkflowExecutionsFieldRequest) (*api.ListWorkflowExecutionsFieldResponse, error) {
|
||||
client := getClient(ctx)
|
||||
allowed, err := auth.IsAuthorized(client, req.Namespace, "list", "onepanel.io", "workspaces", "")
|
||||
|
||||
@@ -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", "")
|
||||
|
||||
@@ -459,6 +459,7 @@ func (s *WorkspaceServer) GetWorkspaceContainerLogs(req *api.GetWorkspaceContain
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListWorkspacesField returns a list of all the distinct values of a field from Workspaces
|
||||
func (s *WorkspaceServer) ListWorkspacesField(ctx context.Context, req *api.ListWorkspacesFieldRequest) (*api.ListWorkspacesFieldResponse, error) {
|
||||
client := getClient(ctx)
|
||||
allowed, err := auth.IsAuthorized(client, req.Namespace, "list", "onepanel.io", "workspaces", "")
|
||||
|
||||
@@ -231,6 +231,7 @@ func (s *WorkspaceTemplateServer) ArchiveWorkspaceTemplate(ctx context.Context,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// ListWorkspaceTemplatesField returns a list of all the distinct values of a field from WorkspaceTemplates
|
||||
func (s *WorkspaceTemplateServer) ListWorkspaceTemplatesField(ctx context.Context, req *api.ListWorkspaceTemplatesFieldRequest) (*api.ListWorkspaceTemplatesFieldResponse, error) {
|
||||
client := getClient(ctx)
|
||||
allowed, err := auth.IsAuthorized(client, req.Namespace, "get", "argoproj.io", "workflowtemplates", "")
|
||||
|
||||
Reference in New Issue
Block a user