mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-17 03:00:36 +08:00
chore: updated method docs
This commit is contained in:
@@ -68,6 +68,7 @@ type WorkflowExecutionFilter struct {
|
||||
Phase string // empty string means none
|
||||
}
|
||||
|
||||
// GetLabels returns the labels in the filter
|
||||
func (wf *WorkflowExecutionFilter) GetLabels() []*Label {
|
||||
return wf.Labels
|
||||
}
|
||||
|
@@ -601,6 +601,7 @@ func (c *Client) ListWorkspacesByTemplateID(namespace string, templateID uint64)
|
||||
return
|
||||
}
|
||||
|
||||
// ListWorkspaces returns a list of workspaces that satisfy the conditions in the request
|
||||
func (c *Client) ListWorkspaces(namespace string, request *request.Request) (workspaces []*Workspace, err error) {
|
||||
sb := sb.Select(getWorkspaceColumns("w")...).
|
||||
Columns(getWorkspaceStatusColumns("w", "status")...).
|
||||
|
Reference in New Issue
Block a user