SetError sets container statistics error
(err error)
| 78 | |
| 79 | // SetError sets container statistics error |
| 80 | func (cs *Stats) SetError(err error) { |
| 81 | cs.mutex.Lock() |
| 82 | defer cs.mutex.Unlock() |
| 83 | cs.err = err |
| 84 | if err != nil { |
| 85 | cs.IsInvalid = true |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | // SetStatistics set the container statistics |
| 90 | func (cs *Stats) SetStatistics(s StatsEntry) { |