(ctx devspacecontext.Context, name string, options *deploy.PurgeOptions)
| 192 | } |
| 193 | |
| 194 | func (d *devPodManager) Reset(ctx devspacecontext.Context, name string, options *deploy.PurgeOptions) error { |
| 195 | lock := d.lockFactory.GetLock(name) |
| 196 | lock.Lock() |
| 197 | defer lock.Unlock() |
| 198 | |
| 199 | d.stop(name) |
| 200 | devPod, ok := ctx.Config().RemoteCache().GetDevPod(name) |
| 201 | if ok { |
| 202 | _, err := podreplace.NewPodReplacer().RevertReplacePod(ctx, &devPod, options) |
| 203 | return err |
| 204 | } |
| 205 | |
| 206 | return nil |
| 207 | } |
| 208 | |
| 209 | func (d *devPodManager) Stop(ctx devspacecontext.Context, name string) { |
| 210 | lock := d.lockFactory.GetLock(name) |
nothing calls this directly
no test coverage detected