(cid string)
| 41 | } |
| 42 | |
| 43 | func (s *stats) isKnownContainer(cid string) (int, bool) { |
| 44 | for i, c := range s.cs { |
| 45 | if c.Container == cid { |
| 46 | return i, true |
| 47 | } |
| 48 | } |
| 49 | return -1, false |
| 50 | } |
| 51 | |
| 52 | // snapshot returns a point-in-time copy of the tracked container list |
| 53 | // (the slice of *Stats pointers). The returned slice is safe for use |