- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ruleMatches (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
} type policyRuleEvaluator struct { audit.Policy } func (p *policyRuleEvaluator) EvaluatePolicyRule(attrs authorizer.Attributes) auditinternal.RequestAuditConfig { for _, rule := range p.Rules { if ruleMatches(&rule, attrs) { return auditinternal.RequestAuditConfig{ Level: rule.Level, OmitStages: rule.OmitStages, OmitManagedFields: isOmitManagedFields(&rule, p.OmitManagedFields), } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 22:24:14 UTC 2022 - 6.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/compile.go
f.HTMLWriter.flushPhases() } if f.ruleMatches != nil { var keys []string for key := range f.ruleMatches { keys = append(keys, key) } sort.Strings(keys) buf := new(strings.Builder) fmt.Fprintf(buf, "%s: ", f.Name) for _, key := range keys { fmt.Fprintf(buf, "%s=%d ", key, f.ruleMatches[key]) } fmt.Fprint(buf, "\n") fmt.Print(buf.String()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:55:18 UTC 2024 - 18.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewrite.go
} // countRule increments Func.ruleMatches[key]. // If Func.ruleMatches is non-nil at the end // of compilation, it will be printed to stdout. // This is intended to make it easier to find which functions // which contain lots of rules matches when developing new rules. func countRule(v *Value, key string) bool { f := v.Block.Func if f.ruleMatches == nil { f.ruleMatches = make(map[string]int) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/func.go
PrintOrHtmlSSA bool // true if GOSSAFUNC matches, true even if fe.Log() (spew phase results to stdout) is false. There's an odd dependence on this in debug.go for method logf. ruleMatches map[string]int // number of times countRule was called during compilation for any given string ABI0 *abi.ABIConfig // A copy, for no-sync access ABI1 *abi.ABIConfig // A copy, for no-sync access
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0) -
pkg/proxy/iptables/proxier_test.go
return &iptablesTracer{ ipt: ipt, localIPs: localIPs, t: t, } } // ruleMatches checks if the given iptables rule matches (at least probabilistically) a // packet with the given sourceIP, destIP, and destPort. func (tracer *iptablesTracer) ruleMatches(rule *iptablestest.Rule, sourceIP, protocol, destIP, destPort string) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching.go
matchKind := attr.GetKind() matchResource := attr.GetResource() for _, namedRule := range namedRules { rule := v1.RuleWithOperations(namedRule.RuleWithOperations) ruleMatcher := rules.Matcher{ Rule: rule, Attr: attr, } if !ruleMatcher.Matches() { continue } // an empty name list always matches if len(namedRule.ResourceNames) == 0 { return true, matchResource, matchKind, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 6.8K bytes - Viewed (0)