コード例 #1
0
func (cr *InMemoryContainerRepository) Delete(container linux_backend.Container) {
	cr.mutex.Lock()
	defer cr.mutex.Unlock()

	delete(cr.store, container.Handle())
}
コード例 #2
0
func (cr *InMemoryContainerRepository) Add(container linux_backend.Container) {
	cr.mutex.Lock()
	defer cr.mutex.Unlock()

	cr.store[container.Handle()] = container
}