- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 345 for unmarshaler (0.15 sec)
-
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) -
staging/src/k8s.io/apiserver/pkg/storage/interfaces.go
// match 'opts.ResourceVersion' according 'opts.ResourceVersionMatch'. Get(ctx context.Context, key string, opts GetOptions, objPtr runtime.Object) error // GetList unmarshalls objects found at key into a *List api object (an object // that satisfies runtime.IsList definition). // If 'opts.Recursive' is false, 'key' is used as an exact match. If `opts.Recursive'
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 07:53:48 UTC 2024 - 14.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
t.Fatal(err) } // See if it can unmarshal to object meta spuriousJSON, err := utiljson.Marshal(spuriousMetaMap) if err != nil { t.Fatalf("error on %v=%#v: %v", pth, v, err) } expectedObjectMeta := &metav1.ObjectMeta{} if err := utiljson.Unmarshal(spuriousJSON, expectedObjectMeta); err != nil { // if standard json unmarshal would fail decoding this field, drop the field entirely
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/configdump.go
// TODO(fisherxu): migrate this to jsonpb when issue fixed in golang // Issue to track -> https://github.com/golang/protobuf/issues/632 err := json.Unmarshal(b, rawDump) if err != nil { return fmt.Errorf("error unmarshalling config dump response from ztunnel: %v", err) } // ensure that data gets unmarshalled into the right data type if err := unmarshalListOrMap(rawDump.Services, &zDump.Services); err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 3.9K bytes - Viewed (0) -
pilot/pkg/xds/nds_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/embedded.go
if _, ok := obj.(*Unknown); ok { return obj } return encodable{e, obj, versions} } func (e encodable) UnmarshalJSON(in []byte) error { return errors.New("runtime.encodable cannot be unmarshalled from JSON") } // Marshal may get called on pointers or values, so implement MarshalJSON on value. // http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 02 09:39:03 UTC 2019 - 4.3K bytes - Viewed (0) -
src/crypto/x509/pkcs1.go
var priv pkcs1PrivateKey rest, err := asn1.Unmarshal(der, &priv) if len(rest) > 0 { return nil, asn1.SyntaxError{Msg: "trailing data"} } if err != nil { if _, err := asn1.Unmarshal(der, &ecPrivateKey{}); err == nil { return nil, errors.New("x509: failed to parse private key (use ParseECPrivateKey instead for this key format)") } if _, err := asn1.Unmarshal(der, &pkcs8{}); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/state/checkpoint.go
} // UnmarshalCheckpoint tries to unmarshal passed bytes to checkpoint in v1 format func (cp *CPUManagerCheckpointV1) UnmarshalCheckpoint(blob []byte) error { return json.Unmarshal(blob, cp) } // UnmarshalCheckpoint tries to unmarshal passed bytes to checkpoint in v2 format func (cp *CPUManagerCheckpointV2) UnmarshalCheckpoint(blob []byte) error { return json.Unmarshal(blob, cp) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/istio-agent/xds_proxy.go
} if ia.localDNSServer != nil { proxy.handlers[model.NameTableType] = func(resp *anypb.Any) error { var nt dnsProto.NameTable if err := resp.UnmarshalTo(&nt); err != nil { log.Errorf("failed to unmarshal name table: %v", err) return err } ia.localDNSServer.UpdateLookupTable(&nt) return nil } } if ia.cfg.EnableDynamicProxyConfig && ia.secretCache != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 27.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
return MicroTime{time.Unix(sec, nsec)} } // UnmarshalJSON implements the json.Unmarshaller interface. func (t *MicroTime) UnmarshalJSON(b []byte) error { if len(b) == 4 && string(b) == "null" { t.Time = time.Time{} return nil } var str string err := json.Unmarshal(b, &str) if err != nil { return err } pt, err := time.Parse(RFC3339Micro, str) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 5.2K bytes - Viewed (0)