(id string, pid int)
| 107 | } |
| 108 | |
| 109 | func (m *ContainerMap) UpdateContainerPid(id string, pid int) (err error) { |
| 110 | info, exist := m.Exist(id) |
| 111 | if !exist { |
| 112 | return ContainerNotExists |
| 113 | } |
| 114 | info.HostPid = pid |
| 115 | return nil |
| 116 | } |
| 117 | |
| 118 | func (m *ContainerMap) UpdateContainerStreamMode(id string, streamMode bool) (err error) { |
| 119 | info, exist := m.Exist(id) |
no test coverage detected