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

Method Delete

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

Delete removes the item with the given id, if present.

(id string)

Source from the content-addressed store, hash-verified

62
63// Delete removes the item with the given id, if present.
64func (t *Tracker[T]) Delete(id string) {
65 t.mu.Lock()
66 delete(t.items, id)
67 t.mu.Unlock()
68}
69
70// Clear removes all tracked items and returns a snapshot of the previous contents.
71//

Callers 5

checkServicesMethod · 0.45
checkContainersMethod · 0.45
ContainerManagerMethod · 0.45
ServiceManagerMethod · 0.45
TestTrackerBasicFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestTrackerBasicFunction · 0.36