- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 804 for unmarshalV1 (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
if err := yaml.Unmarshal(patch, &newObj.Object); err != nil { t.Fatalf("error decoding YAML: %v", err) } if err := f.Update(newObj, "fieldmanager_test"); err != nil { t.Fatalf("failed to apply object: %v", err) } appliedObj := &unstructured.Unstructured{Object: map[string]interface{}{}} if err := yaml.Unmarshal([]byte(`{ "apiVersion": "apps/v1", "kind": "Deployment",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0) -
istioctl/pkg/util/configdump/cluster.go
for i := range dac { dac[i].Cluster.TypeUrl = v3.ClusterType } sort.Slice(dac, func(i, j int) bool { cluster := &cluster.Cluster{} err = dac[i].Cluster.UnmarshalTo(cluster) if err != nil { return false } name := cluster.Name err = dac[j].Cluster.UnmarshalTo(cluster) if err != nil { return false } return name < cluster.Name }) if stripVersions { for i := range dac {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go
// serialize a single field if singleFieldBytes, err := utiljson.Marshal(map[string]interface{}{k: v}); err == nil { // do a test unmarshal if utiljson.Unmarshal(singleFieldBytes, testObjectMeta) == nil { // if that succeeds, unmarshal for real if opts.ReturnUnknownFieldPaths { strictErrs, _ := kjson.UnmarshalStrict(singleFieldBytes, accumulatedObjectMeta) if len(strictErrs) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 14:55:12 UTC 2022 - 5.4K bytes - Viewed (0) -
internal/event/config_test.go
{[]byte(`<FilterRule><Name>suffix</Name><Value>foo/bar</Value></FilterRule>`), &FilterRule{"suffix", "foo/bar"}, false}, } for i, testCase := range testCases { result := &FilterRule{} err := xml.Unmarshal(testCase.data, result) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 29K bytes - Viewed (0) -
internal/bucket/lifecycle/transition_test.go
input: `<Transition> <Days>1</Days> </Transition>`, err: errXMLNotWellFormed, }, } for i, tc := range trTests { var tr Transition err := xml.Unmarshal([]byte(tc.input), &tr) if err != nil { t.Fatalf("%d: xml unmarshal failed with %v", i+1, err) } if err = tr.Validate(); err != tc.err { t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err) } } ntrTests := []struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Oct 01 18:58:17 UTC 2021 - 2.3K bytes - Viewed (0) -
pkg/test/framework/components/echo/config.go
configs[i].Namespace = namespace.Static(fmt.Sprint(ns)) delete(raw, "Namespace") } } // unmarshal again after Namespace stripped is stripped, to avoid unmarshal error modifiedBytes, err := json.Marshal(raw) if err != nil { return nil, err } if err := json.Unmarshal(modifiedBytes, &configs); err != nil { return nil, nil } return configs, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 18.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue18676/main.go
// 2. The plugin adds that same itab again. That makes a cycle in the itab // chain rooted at hash bucket 0x111. // 3. The main binary then asks for the itab for *dynamodbstreamsevt.Event / // json.Unmarshaler. This itab happens to also live in bucket 0x111. // The lookup code goes into an infinite loop searching for this itab. // // The code is carefully crafted so that the two itabs are both from the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal_test.go
} for _, c := range cases { var result JSONSchemaPropsOrBoolHolder if err := json.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result, c.result) { t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 10 12:12:24 UTC 2018 - 7.1K bytes - Viewed (0) -
pkg/istio-agent/grpcxds/grpc_bootstrap.go
} func (cp *CertificateProvider) UnmarshalJSON(data []byte) error { var dat map[string]*json.RawMessage if err := json.Unmarshal(data, &dat); err != nil { return err } *cp = CertificateProvider{} if pluginNameVal, ok := dat["plugin_name"]; ok { if err := json.Unmarshal(*pluginNameVal, &cp.PluginName); err != nil { log.Warnf("failed parsing plugin_name in certificate_provider: %v", err) } } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 7.1K bytes - Viewed (0) -
src/encoding/json/tagkey_test.go
t.Fatalf("%s: Marshal error: %v", tt.Where, err) } var f any err = Unmarshal(b, &f) if err != nil { t.Fatalf("%s: Unmarshal error: %v", tt.Where, err) } for k, v := range f.(map[string]any) { if k == tt.key { if s, ok := v.(string); !ok || s != tt.value { t.Fatalf("%s: Unmarshal(%#q) value:\n\tgot: %q\n\twant: %q", tt.Where, b, s, tt.value) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 2.9K bytes - Viewed (0)