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

Method GetError

cli/command/container/formatter_stats.go:55–59  ·  view source on GitHub ↗

GetError returns the container statistics error. This is used to determine whether the statistics are valid or not

()

Source from the content-addressed store, hash-verified

53// GetError returns the container statistics error.
54// This is used to determine whether the statistics are valid or not
55func (cs *Stats) GetError() error {
56 cs.mutex.RLock()
57 defer cs.mutex.RUnlock()
58 return cs.err
59}
60
61// SetErrorAndReset zeroes all the container statistics and store the error.
62// It is used when receiving time out error during statistics collecting to reduce lock overhead

Callers 1

RunStatsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected