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

Method Has

lib/container/factory.go:112–115  ·  view source on GitHub ↗
(mk MetricKind)

Source from the content-addressed store, hash-verified

110type MetricSet map[MetricKind]struct{}
111
112func (ms MetricSet) Has(mk MetricKind) bool {
113 _, exists := ms[mk]
114 return exists
115}
116
117func (ms MetricSet) HasAny(ms1 MetricSet) bool {
118 for m := range ms1 {

Callers 15

AppendMethod · 0.95
RegisterFunction · 0.80
newContainerHandlerFunction · 0.80
GetSpecMethod · 0.80
FsStatsFunction · 0.80
newContainerHandlerFunction · 0.80
needNetMethod · 0.80
GetSpecMethod · 0.80
RegisterFunction · 0.80
SetMethod · 0.80
DifferenceMethod · 0.80
newCrioContainerHandlerFunction · 0.80

Calls

no outgoing calls