Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 177 for unmarshaler (1.89 sec)

  1. cmd/kubeadm/app/util/marshal.go

    	if !ok {
    		return []byte{}, errors.Errorf("unsupported media type %q", mediaType)
    	}
    
    	encoder := codecs.EncoderForVersion(info.Serializer, gv)
    	return runtime.Encode(encoder, obj)
    }
    
    // UniversalUnmarshal unmarshals YAML or JSON into a runtime.Object using the universal deserializer.
    func UniversalUnmarshal(buffer []byte) (runtime.Object, error) {
    	codecs := clientsetscheme.Codecs
    	decoder := codecs.UniversalDeserializer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"TagPathError.Struct", Field, 0},
    		{"TagPathError.Tag1", Field, 0},
    		{"TagPathError.Tag2", Field, 0},
    		{"Token", Type, 0},
    		{"TokenReader", Type, 10},
    		{"Unmarshal", Func, 0},
    		{"UnmarshalError", Type, 0},
    		{"Unmarshaler", Type, 2},
    		{"UnmarshalerAttr", Type, 2},
    		{"UnsupportedTypeError", Type, 0},
    		{"UnsupportedTypeError.Type", Field, 0},
    	},
    	"errors": {
    		{"As", Func, 13},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/flagdefs.go

    	"stdmethods":       true,
    	"stdversion":       true,
    	"stringintconv":    true,
    	"structtag":        true,
    	"testinggoroutine": true,
    	"tests":            true,
    	"timeformat":       true,
    	"unmarshal":        true,
    	"unreachable":      true,
    	"unsafeptr":        true,
    	"unusedresult":     true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/listener_builder_test.go

    	expectIstioMTLS := func(t test.Failer, filterChain *listener.FilterChain) {
    		tlsContext := &tls.DownstreamTlsContext{}
    		if err := filterChain.GetTransportSocket().GetTypedConfig().UnmarshalTo(tlsContext); err != nil {
    			t.Fatal(err)
    		}
    		commonTLSContext := tlsContext.CommonTlsContext
    		if len(commonTLSContext.TlsCertificateSdsSecretConfigs) == 0 {
    			t.Fatal("expected tls certificates")
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/httproute_test.go

    			resource, _ := cg.ConfigGen.buildSidecarOutboundHTTPRouteConfig(
    				cg.SetupProxy(nil), &model.PushRequest{Push: cg.PushContext()}, "80", vHostCache, nil, nil)
    			routeCfg := &route.RouteConfiguration{}
    			resource.Resource.UnmarshalTo(routeCfg)
    			xdstest.ValidateRouteConfiguration(t, routeCfg)
    
    			got := map[string][]string{}
    			clusters := map[string]string{}
    			for _, vh := range routeCfg.VirtualHosts {
    				got[vh.Name] = vh.Domains
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  6. pkg/config/analysis/local/context.go

    	var out map[string]int
    	if fmstring != "" {
    		err := json.Unmarshal([]byte(fmstring), &out)
    		if err != nil {
    			return nil, fmt.Errorf("error parsing fieldmap: %s", err)
    		}
    	}
    	refstring := cfg.Meta.Annotations[file.ReferenceKey]
    	var outref resource.Reference
    	if refstring != "" {
    		outref = &kube.Position{}
    		err := json.Unmarshal([]byte(refstring), outref)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/componentconfigs/kubelet.go

    	return result
    }
    
    func (kc *kubeletConfig) Marshal() ([]byte, error) {
    	return kc.configBase.Marshal(&kc.config)
    }
    
    func (kc *kubeletConfig) Unmarshal(docmap kubeadmapi.DocumentMap) error {
    	return kc.configBase.Unmarshal(docmap, &kc.config)
    }
    
    func (kc *kubeletConfig) Get() interface{} {
    	return &kc.config
    }
    
    func (kc *kubeletConfig) Set(cfg interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/expiration.go

    	errLifecycleInvalidDeleteAll    = Errorf("Days (positive integer) should be present inside Expiration with ExpiredObjectAllVersions.")
    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    type ExpirationDays int
    
    // UnmarshalXML parses number of days from Expiration and validates if
    // greater than zero
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. tests/embedded_struct_test.go

    	str, ok := src.(string)
    	if !ok {
    		byt, ok := src.([]byte)
    		if !ok {
    			return errors.New("Embedded.Scan byte assertion failed")
    		}
    		if err := json.Unmarshal(byt, &value); err != nil {
    			return err
    		}
    	} else {
    		if err := json.Unmarshal([]byte(str), &value); err != nil {
    			return err
    		}
    	}
    
    	*c = value
    
    	return nil
    }
    
    func TestEmbeddedScanValuer(t *testing.T) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/net/netip/netip_test.go

    		}
    	}
    
    	// Cannot unmarshal from unexpected lengths.
    	for _, n := range []int{3, 6} {
    		var prefix2 Prefix
    		if err := prefix2.UnmarshalBinary(bytes.Repeat([]byte{1}, n)); err == nil {
    			t.Fatalf("unmarshaled from unexpected length %d", n)
    		}
    	}
    }
    
    func TestAddrMarshalUnmarshal(t *testing.T) {
    	// This only tests the cases where Marshal/Unmarshal diverges from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
Back to top