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

Method Contains

pkg/watch/set.go:183–187  ·  view source on GitHub ↗
(gvk schema.GroupVersionKind)

Source from the content-addressed store, hash-verified

181}
182
183func (w *Set) Contains(gvk schema.GroupVersionKind) bool {
184 w.mux.RLock()
185 defer w.mux.RUnlock()
186 return w.set[gvk]
187}
188
189// Difference returns items in the set that are not in the other (provided) set.
190func (w *Set) Difference(other *Set) *Set {

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80