chore: updated method docs

This commit is contained in:
Andrey Melnikov
2020-09-29 11:17:50 -07:00
parent 541747d232
commit 77716ba56b
2 changed files with 2 additions and 0 deletions

View File

@@ -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
} }

View File

@@ -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")...).