WithContainerCLI sets the agentcontainers.ContainerCLI implementation to use. The default implementation uses the Docker CLI.
(ccli ContainerCLI)
| 158 | // WithContainerCLI sets the agentcontainers.ContainerCLI implementation |
| 159 | // to use. The default implementation uses the Docker CLI. |
| 160 | func WithContainerCLI(ccli ContainerCLI) Option { |
| 161 | return func(api *API) { |
| 162 | api.ccli = ccli |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // WithContainerLabelIncludeFilter sets a label filter for containers. |
| 167 | // This option can be given multiple times to filter by multiple labels. |
no outgoing calls