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