MCPcopy Index your code
hub / github.com/docker/cli / SetStatistics

Method SetStatistics

cli/command/container/formatter_stats.go:90–95  ·  view source on GitHub ↗

SetStatistics set the container statistics

(s StatsEntry)

Source from the content-addressed store, hash-verified

88
89// SetStatistics set the container statistics
90func (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
98func (cs *Stats) GetStatistics() StatsEntry {

Callers 1

collectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected