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)
| 168 | // The behavior is such that only containers matching all of the provided |
| 169 | // labels will be included. |
| 170 | func 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. |
no outgoing calls