MCPcopy Index your code
hub / github.com/coder/coder / workspaceAgentContainersLabelFilter

Function workspaceAgentContainersLabelFilter

codersdk/workspaceagents.go:560–569  ·  view source on GitHub ↗
(kvs map[string]string)

Source from the content-addressed store, hash-verified

558}
559
560func 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.

Callers 1

Calls 2

EncodeMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected