Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 345 for unmarshaler (0.25 sec)

  1. 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)
  2. maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java

         * If {@code element} is not {@code null}, child configuration element with the specified name will
         * be unmarshalled.
         *
         * @param configuration The configuration to unmarshal, may be {@code null}.
         * @param element Configuration element name to unmarshal or {@code null} to unmarshal entire configuration.
         * @return This request for chaining, never {@code null}.
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // nonCacheableTestObject implements json.Marshaler and proto.Marshaler interfaces
    // for mocking purpose.
    // +k8s:deepcopy-gen=false
    type noncacheableTestObject struct {
    	gvk schema.GroupVersionKind
    }
    
    // MarshalJSON implements json.Marshaler interface.
    func (*noncacheableTestObject) MarshalJSON() ([]byte, error) {
    	return []byte("\"json-result\""), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 30 06:58:54 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    }
    
    // UnmarshalJSON implements the json.Unmarshaller interface.
    func (intstr *IntOrString) UnmarshalJSON(value []byte) error {
    	if value[0] == '"' {
    		intstr.Type = String
    		return json.Unmarshal(value, &intstr.StrVal)
    	}
    	intstr.Type = Int
    	return json.Unmarshal(value, &intstr.IntVal)
    }
    
    func (intstr *IntOrString) UnmarshalCBOR(value []byte) error {
    	if err := cbor.Unmarshal(value, &intstr.StrVal); err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/checkpoint/checkpoint.go

    func (cp *Data) MarshalCheckpoint() ([]byte, error) {
    	cp.Checksum = checksum.New(cp.Data)
    	return json.Marshal(*cp)
    }
    
    // UnmarshalCheckpoint returns unmarshalled data
    func (cp *Data) UnmarshalCheckpoint(blob []byte) error {
    	return json.Unmarshal(blob, cp)
    }
    
    // VerifyChecksum verifies that passed checksum is same as calculated checksum
    func (cp *Data) VerifyChecksum() error {
    	return cp.Checksum.Verify(cp.Data)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. internal/kms/dek_test.go

    			t.Fatalf("Test %d: failed to marshal DEK: %v", i, err)
    		}
    
    		var key DEK
    		if err = key.UnmarshalText(text); err != nil {
    			t.Fatalf("Test %d: failed to unmarshal DEK: %v", i, err)
    		}
    		if key.Plaintext != nil {
    			t.Fatalf("Test %d: unmarshaled DEK contains non-nil plaintext", i)
    		}
    		if !bytes.Equal(key.Ciphertext, test.Key.Ciphertext) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/go/doc/comment/testdata/README.md

    “html” for Printer.HTML, “markdown” for Printer.Markdown, and “text” for Printer.Text.
    The format can also be “dump” for a textual dump of the raw data structures.
    
    The text before the `-- input --` line, if present, is JSON to be unmarshaled
    to initialize a comment.Printer. For example, this test case sets the Printer's
    TextWidth field to 20:
    
    	{"TextWidth": 20}
    	-- input --
    	Package gob manages streams of gobs - binary values exchanged between an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. istioctl/pkg/util/configdump/bootstrap.go

    	bootstrapDumpAny, err := w.getSection(bootstrap)
    	if err != nil {
    		return nil, err
    	}
    	bootstrapDump := &admin.BootstrapConfigDump{}
    	err = bootstrapDumpAny.UnmarshalTo(bootstrapDump)
    	if err != nil {
    		return nil, err
    	}
    	return bootstrapDump, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  9. istioctl/pkg/util/configdump/endpoint.go

    	endpointsDumpAny, err := w.getSection(endpoints)
    	if err != nil {
    		return nil, nil
    	}
    	endpointsDump := &admin.EndpointsConfigDump{}
    	err = endpointsDumpAny.UnmarshalTo(endpointsDump)
    	if err != nil {
    		return nil, err
    	}
    	return endpointsDump, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 14:14:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/fake.go

    	raw, _ := f.ConfigGen.BuildClusters(p, &model.PushRequest{Push: f.PushContext()})
    	res := make([]*cluster.Cluster, 0, len(raw))
    	for _, r := range raw {
    		c := &cluster.Cluster{}
    		if err := r.Resource.UnmarshalTo(c); err != nil {
    			f.t.Fatal(err)
    		}
    		res = append(res, c)
    	}
    	return res
    }
    
    func (f *ConfigGenTest) DeltaClusters(
    	p *model.Proxy,
    	configUpdated sets.Set[model.ConfigKey],
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top