- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 804 for unmarshalV1 (0.23 sec)
-
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/crypto/x509/pkcs8.go
func ParsePKCS8PrivateKey(der []byte) (key any, err error) { var privKey pkcs8 if _, err := asn1.Unmarshal(der, &privKey); 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, &pkcs1PrivateKey{}); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/api/autoscaling/v2/generated.pb.go
func (*ContainerResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptor_4d5f2c8767749221, []int{0} } func (m *ContainerResourceMetricSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ContainerResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 162.9K bytes - Viewed (0) -
pkg/model/proxy_test.go
} if string(j) != tt.out { t.Errorf("Got json '%s', expected '%s'", string(j), tt.out) } var meta model.BootstrapNodeMetadata if err := json.Unmarshal(j, &meta); err != nil { t.Fatalf("failed to unmarshal: %v", err) } assert.Equal(t, (*meshconfig.ProxyConfig)(meta.NodeMetadata.ProxyConfig), (*meshconfig.ProxyConfig)(tt.inOut.NodeMetadata.ProxyConfig))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/controller/deployment/util/hash_test.go
spec := v1.PodTemplateSpec{} json.Unmarshal([]byte(specJSON), &spec) hash := controller.ComputeHash(&spec, nil) if v, ok := seenHashes[hash]; ok { t.Errorf("Hash collision, old: %d new: %d", v, i) break } seenHashes[hash] = i } } func BenchmarkAdler(b *testing.B) { spec := v1.PodTemplateSpec{} json.Unmarshal([]byte(podSpec), &spec) for i := 0; i < b.N; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 28 19:00:40 UTC 2019 - 4K bytes - Viewed (0) -
pkg/log/uds_test.go
Msg string `json:"msg"` K string `json:"k"` } want := []testMessage{ {Msg: "test", K: "v"}, {Msg: "test2"}, } got := make([]testMessage, 2) json.Unmarshal([]byte(srv.messages[0]), &got[0]) json.Unmarshal([]byte(srv.messages[1]), &got[1]) if !reflect.DeepEqual(got, want) { t.Errorf("received log messages, got %v want %v", got, want) } } {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/api/networking/v1/generated.pb.go
func (*HTTPIngressPath) ProtoMessage() {} func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptor_2c41434372fec1d7, []int{0} } func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 158.2K 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) -
pilot/pkg/networking/core/cluster_traffic_policy_test.go
ctx := &tls.UpstreamTlsContext{} if err := upstreamProxyProtocol.TransportSocket.GetTypedConfig().UnmarshalTo(ctx); err != nil { t.Fatal(err) } } } for i, match := range cluster.TransportSocketMatches { if err := match.TransportSocket.GetTypedConfig().UnmarshalTo(upstreamProxyProtocol); err != nil { t.Fatal(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 03:53:05 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/configstore/download.go
Error string } if err := json.Unmarshal(stdout.Bytes(), &info); err == nil && info.Error != "" { return nil, "", fmt.Errorf("failed to download config module: %v", info.Error) } return nil, "", fmt.Errorf("failed to download config module: %w\n%s", err, &stderr) } var info struct { Dir string Version string Error string } if err := json.Unmarshal(stdout.Bytes(), &info); err != nil || info.Dir == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 2.4K bytes - Viewed (0)