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

Method SetError

cli/command/container/formatter_stats.go:80–87  ·  view source on GitHub ↗

SetError sets container statistics error

(err error)

Source from the content-addressed store, hash-verified

78
79// SetError sets container statistics error
80func (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
90func (cs *Stats) SetStatistics(s StatsEntry) {

Callers 1

collectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected