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

Function WithContainerCLI

agent/agentcontainers/api.go:160–164  ·  view source on GitHub ↗

WithContainerCLI sets the agentcontainers.ContainerCLI implementation to use. The default implementation uses the Docker CLI.

(ccli ContainerCLI)

Source from the content-addressed store, hash-verified

158// WithContainerCLI sets the agentcontainers.ContainerCLI implementation
159// to use. The default implementation uses the Docker CLI.
160func 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.

Calls

no outgoing calls