WithSubAgentClient sets the SubAgentClient implementation to use. This is used to list, create, and delete devcontainer agents.
(client SubAgentClient)
| 184 | // WithSubAgentClient sets the SubAgentClient implementation to use. |
| 185 | // This is used to list, create, and delete devcontainer agents. |
| 186 | func WithSubAgentClient(client SubAgentClient) Option { |
| 187 | return func(api *API) { |
| 188 | api.subAgentClient.Store(&client) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | // WithSubAgentURL sets the agent URL for the sub-agent for |
| 193 | // communicating with the control plane. |