Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 458 for unwrapped (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    		callCount++
    	})
    	// wrap with start and completed handler
    	wrapped := TrackCompleted(handler)
    	wrapped = TrackStarted(wrapped, tp, filterName)
    
    	testRequest, err := http.NewRequest(http.MethodGet, "/api/v1/namespaces", nil)
    	if err != nil {
    		t.Fatalf("failed to create new http request - %v", err)
    	}
    
    	wrapped.ServeHTTP(httptest.NewRecorder(), testRequest)
    
    	if callCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. pkg/volume/metrics_cached.go

    // caches the result.
    type cachedMetrics struct {
    	wrapped       MetricsProvider
    	resultError   error
    	resultMetrics *Metrics
    	once          cacheOnce
    }
    
    // NewCachedMetrics creates a new cachedMetrics wrapping another
    // MetricsProvider and caching the results.
    func NewCachedMetrics(provider MetricsProvider) MetricsProvider {
    	return &cachedMetrics{wrapped: provider}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/syscall/js/func.go

    // the result of the Go function mapped back to JavaScript according to ValueOf.
    //
    // Invoking the wrapped Go function from JavaScript will
    // pause the event loop and spawn a new goroutine.
    // Other wrapped functions which are triggered during a call from Go to JavaScript
    // get executed on the same goroutine.
    //
    // As a consequence, if one wrapped function blocks, JavaScript's event loop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    // It supports wrapped errors and returns false when the error is nil.
    func IsAlreadyExists(err error) bool {
    	return ReasonForError(err) == metav1.StatusReasonAlreadyExists
    }
    
    // IsConflict determines if the err is an error which indicates the provided update conflicts.
    // It supports wrapped errors and returns false when the error is nil.
    func IsConflict(err error) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission.go

    var _ admission.ValidationInterface = &managedFieldsValidatingAdmissionController{}
    
    // Handles calls the wrapped admission.Interface if applicable
    func (admit *managedFieldsValidatingAdmissionController) Handles(operation admission.Operation) bool {
    	return admit.wrap.Handles(operation)
    }
    
    // Admit calls the wrapped admission.Interface if applicable and resets the managedFields to their state before admission if they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    		t.Errorf("expected cause, got %v: %#v", ok, cause)
    	}
    
    	wrapped := fmt.Errorf("once: %w", err)
    	if cause, ok := StatusCause(wrapped, "SomeCause"); !ok || cause != err.ErrStatus.Details.Causes[0] {
    		t.Errorf("expected cause when wrapped, got %v: %#v", ok, cause)
    	}
    
    	nested := fmt.Errorf("twice: %w", wrapped)
    	if cause, ok := StatusCause(nested, "SomeCause"); !ok || cause != err.ErrStatus.Details.Causes[0] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_init_test.go

    				// does the inner handler see the audit ID?
    				v, ok := audit.AuditIDFrom(req.Context())
    
    				found = ok
    				auditIDGot = string(v)
    			})
    
    			wrapped := WithAuditInit(handler)
    			if test.newAuditIDFunc != nil {
    				wrapped = withAuditInit(handler, test.newAuditIDFunc)
    			}
    
    			testRequest, err := http.NewRequest(http.MethodGet, "/api/v1/namespaces", nil)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:35 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_received_time_test.go

    	})
    
    	wrapped := withRequestReceivedTimestampWithClock(handler, testingclock.NewFakeClock(receivedTimestampExpected))
    
    	testRequest, err := http.NewRequest(http.MethodGet, "/api/v1/namespaces", nil)
    	if err != nil {
    		t.Fatalf("failed to create new http request - %v", err)
    	}
    
    	w := httptest.NewRecorder()
    	wrapped.ServeHTTP(w, testRequest)
    
    	if callCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/ErroringAction.java

     *
     * Implementations implement doExecute() (instead of execute()) which is allowed to throw checked exceptions.
     * Any checked exceptions thrown will be wrapped as unchecked exceptions and re-thrown.
     *
     * How the exception is wrapped is subject to {@link UncheckedException#throwAsUncheckedException(Throwable)}.
     *
     * @param <T> The type of object which this action accepts.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/with_retry_after_test.go

    				// but since the WaitGroup counter is zero it should not block
    				safeWG.Wait()
    			}
    
    			wrapped := WithWaitGroup(handler, func(*http.Request, *apirequest.RequestInfo) bool {
    				return false
    			}, safeWG)
    			wrapped = WithRetryAfter(wrapped, test.shutdownDelayDurationElapsedFn())
    
    			req, err := http.NewRequest(http.MethodGet, test.requestURL, nil)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 31 14:10:46 UTC 2021
    - 6.1K bytes
    - Viewed (0)
Back to top