- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 177 for unmarshaler (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go
creater: &mockCreater{obj: &testDecodable{}}, expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, errFn: func(err error) bool { return strings.Contains(err.Error(), `json: cannot unmarshal number 1e1000 into Go struct field testDecodable.interface of type float64`) }, }, // Unmarshalling is case-sensitive { // "VaLue" should have been "value"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 04 15:55:02 UTC 2024 - 40K bytes - Viewed (0) -
src/testing/fuzz.go
if e.Values == nil { // The corpusEntry must have non-nil Values in order to run the // test. If Values is nil, it is a bug in our code. panic(fmt.Sprintf("corpus file %q was not unmarshaled", e.Path)) } if shouldFailFast() { return true } testName := f.name if e.Path != "" { testName = fmt.Sprintf("%s/%s", testName, filepath.Base(e.Path)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 22.9K bytes - Viewed (0) -
src/crypto/tls/conn.go
default: return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage)) } // The handshake message unmarshalers // expect to be able to keep references to data, // so pass in a fresh copy that won't be overwritten. data = append([]byte(nil), data...) if !m.unmarshal(data) { return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage)) } if transcript != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
} Trace("ReadFile", OverlayFile) b, err := os.ReadFile(OverlayFile) if err != nil { return fmt.Errorf("reading overlay file: %v", err) } var overlayJSON OverlayJSON if err := json.Unmarshal(b, &overlayJSON); err != nil { return fmt.Errorf("parsing overlay JSON: %v", err) } return initFromJSON(overlayJSON) } func initFromJSON(overlayJSON OverlayJSON) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/deploymentcontroller.go
} // apply server-side applies a template to the cluster. func (d *DeploymentController) apply(controller string, yml string) error { data := map[string]any{} err := yaml.Unmarshal([]byte(yml), &data) if err != nil { return err } us := unstructured.Unstructured{Object: data} // set managed-by label clabel := strings.ReplaceAll(controller, "/", "-")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 21:43:20 UTC 2024 - 26.3K bytes - Viewed (0) -
pkg/controller/daemon/update.go
// recorded patches. func getPatch(ds *apps.DaemonSet) ([]byte, error) { dsBytes, err := json.Marshal(ds) if err != nil { return nil, err } var raw map[string]interface{} err = json.Unmarshal(dsBytes, &raw) if err != nil { return nil, err } objCopy := make(map[string]interface{}) specCopy := make(map[string]interface{}) // Create a patch of the DaemonSet that replaces spec.template
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 16:53:53 UTC 2024 - 24.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
force = *p.options.Force } if p.fieldManager == nil { panic("FieldManager must be installed to run apply") } patchObj := &unstructured.Unstructured{Object: map[string]interface{}{}} if err := yaml.Unmarshal(p.patch, &patchObj.Object); err != nil { return nil, errors.NewBadRequest(fmt.Sprintf("error decoding YAML: %v", err)) } obj, err := p.fieldManager.Apply(obj, patchObj, p.options.FieldManager, force)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/cache.go
if cfg.GOPROXY == "off" { if file, info, err := readDiskStatByHash(ctx, path, rev); err == nil { return file, info, nil } } return file, nil, err } info = new(RevInfo) if err := json.Unmarshal(data, info); err != nil { return file, nil, errNotCached } // The disk might have stale .info files that have Name and Short fields set. // We want to canonicalize to .info files with those fields omitted.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 24.7K bytes - Viewed (0) -
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) -
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)