MCPcopy
hub / github.com/crowdsecurity/crowdsec / Len

Method Len

pkg/acquisition/modules/docker/tracker/tracker.go:84–89  ·  view source on GitHub ↗

Len returns the number of items currently stored in the tracker.

()

Source from the content-addressed store, hash-verified

82
83// Len returns the number of items currently stored in the tracker.
84func (t *Tracker[T]) Len() int {
85 t.mu.RLock()
86 n := len(t.items)
87 t.mu.RUnlock()
88 return n
89}

Callers 15

TestAppsecEventToContextFunction · 0.45
assertMetricsFunction · 0.45
TestOneShotFunction · 0.45
TestOneShotFunction · 0.45
checkServicesMethod · 0.45
checkContainersMethod · 0.45
TestOneShotFunction · 0.45
TestTrackerBasicFunction · 0.45
TestTrackerLazyInitFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestAppsecEventToContextFunction · 0.36
assertMetricsFunction · 0.36
TestOneShotFunction · 0.36
TestOneShotFunction · 0.36
TestOneShotFunction · 0.36
TestTrackerBasicFunction · 0.36
TestTrackerLazyInitFunction · 0.36
TestTrackerClearFunction · 0.36
TestAppsecBodySizeFunction · 0.36