- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 71 for resMatch (0.39 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go
opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource() for _, res := range r.Rule.Resources { res, sub := splitResource(res) resMatch := res == "*" || res == opRes subMatch := sub == "*" || sub == opSub if resMatch && subMatch { return true } } return false } // IsExemptAdmissionConfigurationResource determines if an admission.Attributes object is describing
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:38:55 UTC 2022 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go
// and the initialization signal will not be send. // It has to happen before waiting on the resultCh below. watchInitializationSignal.Signal() // TODO: Consider finishing the request as soon as Handle call panics. if err := <-resultCh; err != nil { panic(err) } case err := <-resultCh: if err != nil { panic(err) } } } else { execute := func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go
} bak := os.Stderr os.Stderr = w defer func() { os.Stderr = bak }() resultCh := make(chan string) // copy the output in a separate goroutine so printing can't block indefinitely go func() { var buf bytes.Buffer io.Copy(&buf, r) resultCh <- buf.String() }() f() w.Close() return <-resultCh, nil } func Test_rudimentaryErrorBackoff_OnError_ParallelSleep(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/build/read.go
continue } if c == '"' { c = r.readByteNoBuf() goto Reswitch } } goto Reswitch case '`': startLine = false for r.err == nil { if r.eof { r.syntaxError() } c = r.readByteNoBuf() if c == '`' { c = r.readByteNoBuf() goto Reswitch } } case '\'': startLine = false for r.err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build_read.go
continue } if c == '"' { c = r.readByteNoBuf() goto Reswitch } } goto Reswitch case '`': startLine = false for r.err == nil { if r.eof { r.syntaxError() } c = r.readByteNoBuf() if c == '`' { c = r.readByteNoBuf() goto Reswitch } } case '\'': startLine = false for r.err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 13K bytes - Viewed (0) -
src/internal/singleflight/singleflight_test.go
go func() { g.Do(key, func() (i interface{}, e error) { // Notify that we started secondCh <- struct{}{} <-secondCh return 2, nil }) }() <-secondCh resultCh := g.DoChan(key, func() (i interface{}, e error) { panic("third must not be started") }) if g.ForgetUnshared(key) { t.Errorf("Before first goroutine finished, key %q is shared, should return false", key) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 22:21:50 UTC 2023 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go
} type inFlightRequest struct { blockedCh, startedCh chan struct{} resultCh chan result url string } func setupInFlightNonLongRunningRequestHandler(s *GenericAPIServer) *inFlightRequest { inflight := &inFlightRequest{ blockedCh: make(chan struct{}), startedCh: make(chan struct{}), resultCh: make(chan result), url: "/in-flight-non-long-running-request-as-designed", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 38.3K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/PathTraversalChecker.java
* * This code is used for path traversal, ZipSlip and TarSlip detection. * * <b>IMPLEMENTATION NOTE</b> * We do it this way instead of the way recommended in <a href="https://snyk.io/research/zip-slip-vulnerability"></a> * for performance reasons, calling {@link File#getCanonicalPath()} is too expensive. * * @throws IllegalArgumentException if the entry contains vulnerable sequences */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/sparseset.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssa // from https://research.swtch.com/sparse // in turn, from Briggs and Torczon type sparseSet struct { dense []ID sparse []int32 } // newSparseSet returns a sparseSet that can represent // integers between 0 and n-1. func newSparseSet(n int) *sparseSet {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 1.5K bytes - Viewed (0)