(id string)
| 95 | } |
| 96 | |
| 97 | func (m *ContainerMap) Exist(id string) (info *api.ContainerInfo, exist bool) { |
| 98 | val, ok := m.CMap.Load(id) |
| 99 | if !ok { |
| 100 | return nil, false |
| 101 | } |
| 102 | info, ok = val.(*api.ContainerInfo) |
| 103 | if !ok { |
| 104 | return nil, false |
| 105 | } |
| 106 | return info, true |
| 107 | } |
| 108 | |
| 109 | func (m *ContainerMap) UpdateContainerPid(id string, pid int) (err error) { |
| 110 | info, exist := m.Exist(id) |
no test coverage detected