SetStatistics set the container statistics
(s StatsEntry)
| 88 | |
| 89 | // SetStatistics set the container statistics |
| 90 | func (cs *Stats) SetStatistics(s StatsEntry) { |
| 91 | cs.mutex.Lock() |
| 92 | defer cs.mutex.Unlock() |
| 93 | s.Container = cs.Container |
| 94 | cs.StatsEntry = s |
| 95 | } |
| 96 | |
| 97 | // GetStatistics returns container statistics with other meta data such as the container name |
| 98 | func (cs *Stats) GetStatistics() StatsEntry { |