MCPcopy
hub / github.com/open-policy-agent/gatekeeper / Add

Method Add

pkg/watch/set.go:104–110  ·  view source on GitHub ↗
(gvks ...schema.GroupVersionKind)

Source from the content-addressed store, hash-verified

102}
103
104func (w *Set) Add(gvks ...schema.GroupVersionKind) {
105 w.mux.Lock()
106 defer w.mux.Unlock()
107 for _, gvk := range gvks {
108 w.set[gvk] = true
109 }
110}
111
112func (w *Set) Remove(gvks ...schema.GroupVersionKind) {
113 w.mux.Lock()

Callers 8

pruneUnwatchedGVKsMethod · 0.95
interpretErrFunction · 0.95
replayGVKsMethod · 0.95
SetFromFunction · 0.95
TestSet_Replace_RaceFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestSet_Replace_RaceFunction · 0.76