Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for BODY (0.16 sec)

  1. istioctl/pkg/admin/istiodconfig.go

    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    		return nil, fmt.Errorf("cannot deserialize response %s", err)
    	}
    	return scopeInfos, nil
    }
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus_test.go

    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. istioctl/pkg/kubeinject/kubeinject.go

    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	body, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return nil, err
    	}
    	var obj runtime.Object
    	var ar *kube.AdmissionReview
    	out, _, err := deserializer.Decode(body, nil, obj)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode body: %v", err)
    	}
    	ar, err = kube.AdmissionReviewKubeToAdapter(out)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/admission/v1beta1/generated.proto

      // This field IS NOT consulted in any way if "Allowed" is "true".
      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
    
      // The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
      // +optional
      optional bytes patch = 4;
    
      // The type of Patch. Currently we only allow "JSONPatch".
      // +optional
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                            redirect or forward (default) traffic.
                          properties:
                            body:
                              description: Specifies the content of the response body.
                              oneOf:
                              - not:
                                  anyOf:
                                  - required:
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 18:46:49 GMT 2024
    - 570.3K bytes
    - Viewed (0)
  6. cni/pkg/log/uds.go

    	if req.Body == nil {
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    		log.Errorf("Failed to read log report from cni plugin: %v", err)
    		return
    	}
    	l.processLog(data)
    }
    
    func (l *UDSLogger) processLog(body []byte) {
    	cniLogs := make([]string, 0)
    	err := json.Unmarshal(body, &cniLogs)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  7. istioctl/pkg/cli/mock_test.go

    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/healthServer_test.go

    }
    
    func makeReq(t *testing.T, url, endpoint string, expectedStatusCode int) {
    	t.Helper()
    	res, err := http.Get(url + endpoint)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != expectedStatusCode {
    		t.Fatalf("expected status code from %s: %d, got: %d", endpoint, expectedStatusCode, res.StatusCode)
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz

    string type: object directResponse: description: A HTTP rule can either return a direct_response, redirect or forward (default) traffic. properties: body: description: Specifies the content of the response body. oneOf: - not: anyOf: - required: - string - required: - bytes - required: - string - required: - bytes properties: bytes: description: response body as base64 encoded bytes. format: binary type: string string: type: string type: object status: description: Specifies the HTTP response status to...
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 198.1K bytes
    - Viewed (1)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top