Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 150 for resps (0.19 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    					proxyURL.User = testCase.proxyAuth
    					return proxyURL, nil
    				}
    			}
    
    			client := &http.Client{Transport: spdyTransport}
    
    			resp, err := client.Do(req)
    			var conn httpstream.Connection
    			if err == nil {
    				conn, err = spdyTransport.NewConnection(resp)
    			}
    			haveErr := err != nil
    			if e, a := testCase.shouldError, haveErr; e != a {
    				t.Fatalf("shouldError=%t, got %t: %v", e, a, err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
  2. cmd/utils.go

    	_, err = dexClient.Do(req)
    	if err != nil {
    		return "", fmt.Errorf("post form err: %v", err)
    	}
    	// fmt.Printf("resp: %#v %#v\n", resp.StatusCode, resp.Header)
    	// bodyBuf, err := io.ReadAll(resp.Body)
    	// if err != nil {
    	// 	return "", fmt.Errorf("Error reading body: %v", err)
    	// }
    	// fmt.Printf("resp body: %s\n", string(bodyBuf))
    	// fmt.Printf("lastReq: %#v\n", lastReq.URL.String())
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. pkg/bootstrap/platform/gcp.go

    		resp, err := oauth2.NewClient(ctx, creds.TokenSource).Get(url)
    		if err != nil {
    			log.Warnf("unable to retrieve instance labels: %v", err)
    			success <- false
    			return
    
    		}
    		defer resp.Body.Close()
    		instance := &GcpInstance{}
    		if err := json.NewDecoder(resp.Body).Decode(instance); err != nil {
    			log.Warnf("failed to decode response: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 00:37:33 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    			State: &runtimeapi.PodSandboxStateValue{
    				State: readyState,
    			},
    		}
    	}
    
    	resp, err := m.runtimeService.ListPodSandbox(ctx, filter)
    	if err != nil {
    		klog.ErrorS(err, "Failed to list pod sandboxes")
    		return nil, err
    	}
    
    	return resp, nil
    }
    
    // determinePodSandboxIP determines the IP addresses of the given pod sandbox.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. istioctl/pkg/multixds/gather.go

    					// If we already have information about the pod, skip it.
    					continue
    				}
    				resp, err := queryToOnePod(&pod)
    				if err != nil {
    					fmt.Fprintf(os.Stderr, "Skip the agent in Pod %s due to the error: %s\n", namespacedName, err.Error())
    					continue
    				}
    				responses = append(responses, resp)
    			}
    			token = list.ListMeta.GetContinue()
    			if token == "" {
    				break
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 08 08:38:19 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/math/big/prime.go

    }
    
    // probablyPrimeMillerRabin reports whether n passes reps rounds of the
    // Miller-Rabin primality test, using pseudo-randomly chosen bases.
    // If force2 is true, one of the rounds is forced to use base 2.
    // See Handbook of Applied Cryptography, p. 139, Algorithm 4.24.
    // The number n is known to be non-zero.
    func (n nat) probablyPrimeMillerRabin(reps int, force2 bool) bool {
    	nm1 := nat(nil).sub(n, natOne)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. internal/logger/target/http/http.go

    	if h.config.AuthToken != "" {
    		req.Header.Set("Authorization", h.config.AuthToken)
    	}
    
    	resp, err := h.client.Do(req)
    	if err != nil {
    		return fmt.Errorf("%s returned '%w', please check your endpoint configuration", h.Endpoint(), err)
    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/cri_stats_provider.go

    	resp, err := p.imageService.ImageFsInfo(ctx)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	// CRI may return the stats of multiple image filesystems but we only
    	// return the first one.
    	//
    	// TODO(yguo0905): Support returning stats of multiple image filesystems.
    	if len(resp.GetImageFilesystems()) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go

    		simpleStorage.requestedResourceNamespace = ""
    		dest.Path = item.path
    		dest.RawQuery = item.rawQuery
    		resp, err := http.Get(dest.String())
    		if err != nil {
    			t.Errorf("%v: unexpected error: %v", item.rawQuery, err)
    			continue
    		}
    		resp.Body.Close()
    		if e, a := item.namespace, simpleStorage.requestedResourceNamespace; e != a {
    			t.Errorf("%v: expected %v, got %v", item.rawQuery, e, a)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 17:27:39 UTC 2023
    - 30K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/status/server.go

    	)
    
    	resp, err := s.http.Do(req)
    	if err != nil {
    		return nil, cancel, "", fmt.Errorf("error scraping %s: %v", url, err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		resp.Body.Close()
    		return nil, cancel, "", fmt.Errorf("error scraping %s, status code: %v", url, resp.StatusCode)
    	}
    	format := resp.Header.Get("Content-Type")
    	return resp.Body, cancel, format, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
Back to top