- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,530 for Handles (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/chain.go
for _, handler := range admissionHandler { if !handler.Handles(a.GetOperation()) { continue } if validator, ok := handler.(ValidationInterface); ok { err := validator.Validate(ctx, a, o) if err != nil { return err } } } return nil } // Handles will return true if any of the handlers handles the given operation
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/handler.go
type ReadyFunc func() bool // Handler is a base for admission control handlers that // support a predefined set of operations type Handler struct { operations sets.String readyFunc ReadyFunc } // Handles returns true for methods that this handler supports func (h *Handler) Handles(operation Operation) bool { return h.operations.Has(string(operation))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 08:47:19 UTC 2017 - 2.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/variable.cc
TensorHandle* packed_handle; TF_RETURN_IF_ERROR(TensorHandle::CreatePackedHandle( std::move(handles), eager_ctx, &packed_handle)); // The call to `CreatePackedHandle` incremented the handles' reference count, // which we must now decrement to make the packed handle the owner of those // handles. We can't loop through the `handles` vector because it was // `std::move`d in the call above.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 08 20:55:40 UTC 2020 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/audit_test.go
for tcName, tc := range testCases { var handler Interface = fakeHandler{tc.admit, tc.admitAnnotations, tc.validate, tc.validateAnnotations, tc.handles} ctx := audit.WithAuditContext(context.Background()) ac := audit.AuditContextFrom(ctx) ae := &ac.Event ae.Level = auditinternal.LevelMetadata auditHandler := WithAudit(handler) a := attributes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/testing/helpers.go
} } return nil } // Handles will return true if any of the admission andler handlers handle the given operation. func (r *reinvoker) Handles(operation admission.Operation) bool { r.t.Helper() return r.admission.Handles(operation)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/reinvocation.go
if validator, ok := r.admissionChain.(ValidationInterface); ok { return validator.Validate(ctx, a, o) } return nil } // Handles will return true if any of the admission chain handlers handle the given operation. func (r *reinvoker) Handles(operation Operation) bool { return r.admissionChain.Handles(operation)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 2.3K bytes - Viewed (0) -
src/runtime/cgo/handle.go
// // The method panics if the handle is invalid. func (h Handle) Value() any { v, ok := handles.Load(uintptr(h)) if !ok { panic("runtime/cgo: misuse of an invalid Handle") } return v } // Delete invalidates a handle. This method should only be called once // the program no longer needs to pass the handle to C and the C code // no longer has a copy of the handle value. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:59:11 UTC 2023 - 3.6K bytes - Viewed (0) -
pkg/kube/controllers/queue_test.go
) func TestQueue(t *testing.T) { handles := atomic.NewInt32(0) q := NewQueue("custom", WithReconciler(func(key types.NamespacedName) error { handles.Inc() return nil })) q.Add(types.NamespacedName{Name: "something"}) stop := make(chan struct{}) go q.Run(stop) retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond)) assert.Equal(t, handles.Load(), 1) q.Add(types.NamespacedName{Name: "something else"})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 15 16:18:19 UTC 2023 - 1.3K bytes - Viewed (0) -
src/unique/handle_bench_test.go
} func BenchmarkMakeManyMany(b *testing.B) { benchmarkMake(b, testDataLarge[:]) } func benchmarkMake(b *testing.B, testData []string) { handles := make([]Handle[string], 0, len(testData)) for i := range testData { handles = append(handles, Make(testData[i])) } b.ReportAllocs() b.ResetTimer() b.RunParallel(func(pb *testing.PB) { i := 0 for pb.Next() { _ = Make(testData[i])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyAnnotationHandler.java
import java.lang.annotation.Annotation; /** * Handles validation, dependency handling, and skipping for a property marked with a given annotation. * * <p>Each handler must be registered as a global service.</p> */ @ServiceScope(Scope.Global.class) public interface PropertyAnnotationHandler { /** * The annotation type which this handler is responsible for. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 2.5K bytes - Viewed (0)