mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(agent): support deleting dev containers (#21247)
Add logic to the agent, and an endpoint, to allow requesting and then deleting a Dev Container and its related agent.
This commit is contained in:
@@ -311,6 +311,14 @@ func (*fakeContainerCLI) ExecAs(ctx context.Context, containerID, user string, a
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (*fakeContainerCLI) Stop(ctx context.Context, containerID string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*fakeContainerCLI) Remove(ctx context.Context, containerID string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type fakeDevcontainerCLI struct {
|
||||
config agentcontainers.DevcontainerConfig
|
||||
execAgent func(ctx context.Context, token string) error
|
||||
|
||||
Reference in New Issue
Block a user