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

Method needNet

container/podman/handler.go:254–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252}
253
254func (h *containerHandler) needNet() bool {
255 if h.metrics.Has(container.NetworkUsageMetrics) {
256 h.networkMode.IsContainer()
257 return !h.networkMode.IsContainer()
258 }
259 return false
260}
261
262func (h *containerHandler) GetSpec() (info.ContainerSpec, error) {
263 hasFilesystem := h.metrics.Has(container.DiskUsageMetrics)

Callers 2

GetSpecMethod · 0.95
GetStatsMethod · 0.95

Calls 1

HasMethod · 0.80

Tested by

no test coverage detected