- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for VerbMatches (0.1 sec)
-
pkg/apis/rbac/v1/evaluation_helpers.go
See the License for the specific language governing permissions and limitations under the License. */ package v1 import ( "fmt" "strings" rbacv1 "k8s.io/api/rbac/v1" ) func VerbMatches(rule *rbacv1.PolicyRule, requestedVerb string) bool { for _, ruleVerb := range rule.Verbs { if ruleVerb == rbacv1.VerbAll { return true } if ruleVerb == requestedVerb { return true } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 18 15:37:57 UTC 2023 - 3.8K bytes - Viewed (0)