MCPcopy Create free account
hub / github.com/containerd/nerdctl / InitEventHandler

Function InitEventHandler

pkg/eventutil/eventutil.go:31–33  ·  view source on GitHub ↗

InitEventHandler initializes and returns an eventHandler

()

Source from the content-addressed store, hash-verified

29
30// InitEventHandler initializes and returns an eventHandler
31func InitEventHandler() *eventHandler { //nolint:revive
32 return &eventHandler{handlers: make(map[string]func(events.Envelope))}
33}
34
35func (w *eventHandler) Handle(action string, h func(events.Envelope)) {
36 w.mu.Lock()

Callers 1

StatsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…