(kvs map[string]string)
| 558 | } |
| 559 | |
| 560 | func workspaceAgentContainersLabelFilter(kvs map[string]string) RequestOption { |
| 561 | return func(r *http.Request) { |
| 562 | q := r.URL.Query() |
| 563 | for k, v := range kvs { |
| 564 | kv := fmt.Sprintf("%s=%s", k, v) |
| 565 | q.Add("label", kv) |
| 566 | } |
| 567 | r.URL.RawQuery = q.Encode() |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | // WorkspaceAgentListContainers returns a list of containers that are currently |
| 572 | // running on a Docker daemon accessible to the workspace agent. |
no test coverage detected