Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 102 for unmarshaler (0.13 sec)

  1. cmd/admin-bucket-handlers.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	var target madmin.BucketTarget
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. pkg/kube/inject/inject_test.go

    	// Apply the generated patch to the template.
    	if got.Patch != nil {
    		patchedPod := &corev1.Pod{}
    		patch := prettyJSON(got.Patch, t)
    		patchedTemplateJSON := applyJSONPatch(templateJSON, patch, t)
    		if err := json.Unmarshal(patchedTemplateJSON, patchedPod); err != nil {
    			t.Fatal(err)
    		}
    		gotPod = patchedPod
    	} else {
    		gotPod = inputPod
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. pkg/istio-agent/agent_test.go

    			m[strings.TrimPrefix(k, bootstrap.IstioMetaPrefix)] = v
    		}
    	}
    	b, err := json.Marshal(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    	meta := model.NodeMetadata{}
    	if err := json.Unmarshal(b, &meta); err != nil {
    		t.Fatal(err)
    	}
    	pc := (*model.NodeMetaProxyConfig)(proxyConfig)
    	meta.Namespace = "fake-namespace"
    	meta.ServiceAccount = "fake-sa"
    	meta.ProxyConfig = pc
    	return meta
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    			http.Error(w, fmt.Sprintf("unexpected path: %v", r.URL.Path), http.StatusNotFound)
    			return
    		}
    
    		var review authorizationv1.SubjectAccessReview
    		bodyData, _ := ioutil.ReadAll(r.Body)
    		if err := json.Unmarshal(bodyData, &review); err != nil {
    			http.Error(w, fmt.Sprintf("failed to decode body: %v", err), http.StatusBadRequest)
    			return
    		}
    
    		// ensure we received the serialized review as expected
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/sidecar_simulation_test.go

    		ts := filterChain.GetTransportSocket().GetTypedConfig()
    		if ts == nil {
    			return fmt.Errorf("expected transport socket for chain %v", filterChain.GetName())
    		}
    		if err := ts.UnmarshalTo(tlsContext); err != nil {
    			return err
    		}
    		commonTLSContext := tlsContext.CommonTlsContext
    		if len(commonTLSContext.TlsCertificateSdsSecretConfigs) == 0 {
    			return fmt.Errorf("expected tls certificates")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/erasure-multipart.go

    // Implements minimal S3 compatible ListMultipartUploads API. We do
    // not support prefix based listing, this is a deliberate attempt
    // towards simplification of multipart APIs.
    // The resulting ListMultipartsInfo structure is unmarshalled directly as XML.
    func (er erasureObjects) ListMultipartUploads(ctx context.Context, bucket, object, keyMarker, uploadIDMarker, delimiter string, maxUploads int) (result ListMultipartsInfo, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    	if err != nil {
    		if !errors.Is(err, errConfigNotFound) {
    			internalLogOnceIf(ctx, err, backgroundHealInfoPath)
    		}
    		return backgroundHealInfo{}
    	}
    	var info backgroundHealInfo
    	if err = json.Unmarshal(buf, &info); err != nil {
    		bugLogIf(ctx, err, backgroundHealInfoPath)
    	}
    	return info
    }
    
    func saveBackgroundHealInfo(ctx context.Context, objAPI ObjectLayer, info backgroundHealInfo) {
    	if globalIsErasureSD {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:43:17 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    			return err
    		}
    
    		merged, err := jsonpatch.MergePatch(jsonSchema, patchJSON)
    		if err != nil {
    			return err
    		}
    
    		var parsed apiextensionsv1.JSONSchemaProps
    		if err := json.Unmarshal(merged, &parsed); err != nil {
    			return err
    		}
    
    		return updateMyCRDV1Beta1Schema{
    			newSchema: &parsed,
    		}.Do(ctx)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/listener_test.go

    	return oldestService
    }
    
    func getFilterConfig(filter *listener.Filter, out proto.Message) error {
    	switch c := filter.ConfigType.(type) {
    	case *listener.Filter_TypedConfig:
    		if err := c.TypedConfig.UnmarshalTo(out); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func buildOutboundListeners(t *testing.T, proxy *model.Proxy, sidecarConfig *config.Config,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  10. pkg/controller/garbagecollector/garbagecollector_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	patched, err := strategicpatch.StrategicMergePatch(originalData, p, v1.Pod{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	var got v1.Pod
    	if err := json.Unmarshal(patched, &got); err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(expected, got) {
    		t.Errorf("expected: %#v,\ngot: %#v", expected, got)
    	}
    }
    
    func TestUnblockOwnerReference(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top