func (cr *InMemoryContainerRepository) Delete(container linux_backend.Container) { cr.mutex.Lock() defer cr.mutex.Unlock() delete(cr.store, container.Handle()) }
func (cr *InMemoryContainerRepository) Add(container linux_backend.Container) { cr.mutex.Lock() defer cr.mutex.Unlock() cr.store[container.Handle()] = container }