Method
Remove
(ctx context.Context, name string)
Source from the content-addressed store, hash-verified
| 96 | } |
| 97 | |
| 98 | func (f *fakeContainerCLI) Remove(ctx context.Context, name string) error { |
| 99 | f.mu.Lock() |
| 100 | defer f.mu.Unlock() |
| 101 | |
| 102 | f.containers.Containers = slice.Filter(f.containers.Containers, func(container codersdk.WorkspaceAgentContainer) bool { |
| 103 | return container.ID == name |
| 104 | }) |
| 105 | |
| 106 | return f.removeErr |
| 107 | } |
| 108 | |
| 109 | // fakeDevcontainerCLI implements the agentcontainers.DevcontainerCLI |
| 110 | // interface for testing. |
Callers
nothing calls this directly
Tested by
no test coverage detected