(ctx context.Context, pod *api.PodSandbox, ctr *api.Container)
| 1082 | } |
| 1083 | |
| 1084 | func (m *mockPlugin) RemoveContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error { |
| 1085 | if !m.inNamespace(pod.Namespace) { |
| 1086 | return nil |
| 1087 | } |
| 1088 | |
| 1089 | m.Log("RemoveContainer %s/%s/%s", pod.Namespace, pod.Name, ctr.Name) |
| 1090 | delete(m.pods, pod.Id) |
| 1091 | delete(m.ctrs, ctr.Id) |
| 1092 | m.q.Add(ContainerEvent(ctr, RemoveContainer)) |
| 1093 | return nil |
| 1094 | } |
| 1095 | |
| 1096 | func (m *mockPlugin) Wait(e *Event, deadline <-chan time.Time) error { |
| 1097 | _, err := m.q.Wait(e, deadline) |
nothing calls this directly
no test coverage detected