remove is from https://github.com/docker/cli/blob/3fb4fb83dfb5db0c0753a8316f21aea54dab32c5/cli/command/container/stats_helpers.go#L36-L42
(id string)
| 64 | |
| 65 | // remove is from https://github.com/docker/cli/blob/3fb4fb83dfb5db0c0753a8316f21aea54dab32c5/cli/command/container/stats_helpers.go#L36-L42 |
| 66 | func (s *stats) remove(id string) { |
| 67 | s.mu.Lock() |
| 68 | if i, exists := s.isKnownContainer(id); exists { |
| 69 | s.cs = append(s.cs[:i], s.cs[i+1:]...) |
| 70 | } |
| 71 | s.mu.Unlock() |
| 72 | } |
| 73 | |
| 74 | // isKnownContainer is from https://github.com/docker/cli/blob/3fb4fb83dfb5db0c0753a8316f21aea54dab32c5/cli/command/container/stats_helpers.go#L44-L51 |
| 75 | func (s *stats) isKnownContainer(cid string) (int, bool) { |
no test coverage detected