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

Function WithContainerLabelIncludeFilter

agent/agentcontainers/api.go:170–174  ·  view source on GitHub ↗

WithContainerLabelIncludeFilter sets a label filter for containers. This option can be given multiple times to filter by multiple labels. The behavior is such that only containers matching all of the provided labels will be included.

(label, value string)

Source from the content-addressed store, hash-verified

168// The behavior is such that only containers matching all of the provided
169// labels will be included.
170func WithContainerLabelIncludeFilter(label, value string) Option {
171 return func(api *API) {
172 api.containerLabelIncludeFilter[label] = value
173 }
174}
175
176// WithDevcontainerCLI sets the DevcontainerCLI implementation to use.
177// This can be used in tests to modify @devcontainer/cli behavior.

Callers 9

TestExpRptyFunction · 0.92
TestSSH_ContainerFunction · 0.92
TestAPIFunction · 0.92

Calls

no outgoing calls

Tested by 9

TestExpRptyFunction · 0.74
TestSSH_ContainerFunction · 0.74
TestAPIFunction · 0.74