diff --git a/pkg/workflow_execution.go b/pkg/workflow_execution.go index cfdc0de..2d8a53f 100644 --- a/pkg/workflow_execution.go +++ b/pkg/workflow_execution.go @@ -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 } diff --git a/pkg/workspace.go b/pkg/workspace.go index 62b7b7f..ecd2e0b 100644 --- a/pkg/workspace.go +++ b/pkg/workspace.go @@ -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")...).