type Matcher … // Matches returns if the Attr matches the Rule. func (r *Matcher) Matches() bool { … } func exactOrWildcard(items []string, requested string) bool { … } var namespaceResource … func (r *Matcher) scope() bool { … } func (r *Matcher) group() bool { … } func (r *Matcher) version() bool { … } func (r *Matcher) operation() bool { … } func splitResource(resSub string) (res, sub string) { … } func (r *Matcher) resource() bool { … } // IsExemptAdmissionConfigurationResource determines if an admission.Attributes object is describing // the admission of a ValidatingWebhookConfiguration or a MutatingWebhookConfiguration or a ValidatingAdmissionPolicy or a ValidatingAdmissionPolicyBinding func IsExemptAdmissionConfigurationResource(attr admission.Attributes) bool { … }