MCPcopy
hub / github.com/google/cadvisor / Range

Method Range

lib/manager/manager.go:287–291  ·  view source on GitHub ↗

Range calls f for each container in the map. If f returns false, iteration stops.

(f func(name namespacedContainerName, data *containerData) bool)

Source from the content-addressed store, hash-verified

285
286// Range calls f for each container in the map. If f returns false, iteration stops.
287func (c *containerMap) Range(f func(name namespacedContainerName, data *containerData) bool) {
288 c.m.Range(func(key, value any) bool {
289 return f(key.(namespacedContainerName), value.(*containerData))
290 })
291}
292
293type manager struct {
294 containers containerMap

Callers 7

destroyCollectorsMethod · 0.80
getSubcontainersMethod · 0.80
namespacedContainerMethod · 0.80
DebugInfoMethod · 0.80
getContainersDiffMethod · 0.80

Calls 1

fFunction · 0.50

Tested by 1