Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 102 for unmarshaler (0.47 sec)

  1. pkg/kube/client.go

    		if err != nil {
    			errs = multierror.Append(errs,
    				fmt.Errorf("error port-forwarding into %s.%s: %v", pod.Namespace, pod.Name, err),
    				err,
    			)
    			continue
    		}
    		var v version.Version
    		err = json.Unmarshal(result, &v)
    		if err == nil && v.ClientVersion.Version != "" {
    			server.Info = *v.ClientVersion
    			res = append(res, server)
    			continue
    		}
    		// :15014/version returns something like
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_test.go

    					anyOptions := cluster.TypedExtensionProtocolOptions[v3.HttpProtocolOptionsType]
    					g.Expect(anyOptions).NotTo(BeNil())
    					httpProtocolOptions := &http.HttpProtocolOptions{}
    					anyOptions.UnmarshalTo(httpProtocolOptions)
    					g.Expect(httpProtocolOptions.CommonHttpProtocolOptions.MaxRequestsPerConnection.GetValue()).
    						To(Equal(uint32(expected.Http.MaxRequestsPerConnection)))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  3. src/encoding/asn1/marshal.go

    	return t, nil
    }
    
    // Marshal returns the ASN.1 encoding of val.
    //
    // In addition to the struct tags recognized by Unmarshal, the following can be
    // used:
    //
    //	ia5:         causes strings to be marshaled as ASN.1, IA5String values
    //	omitempty:   causes empty slices to be skipped
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. src/testing/fuzz.go

    		if e.Values == nil {
    			// The corpusEntry must have non-nil Values in order to run the
    			// test. If Values is nil, it is a bug in our code.
    			panic(fmt.Sprintf("corpus file %q was not unmarshaled", e.Path))
    		}
    		if shouldFailFast() {
    			return true
    		}
    		testName := f.name
    		if e.Path != "" {
    			testName = fmt.Sprintf("%s/%s", testName, filepath.Base(e.Path))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. src/crypto/tls/conn.go

    	default:
    		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
    	}
    
    	// The handshake message unmarshalers
    	// expect to be able to keep references to data,
    	// so pass in a fresh copy that won't be overwritten.
    	data = append([]byte(nil), data...)
    
    	if !m.unmarshal(data) {
    		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
    	}
    
    	if transcript != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/fsys/fsys.go

    	}
    
    	Trace("ReadFile", OverlayFile)
    	b, err := os.ReadFile(OverlayFile)
    	if err != nil {
    		return fmt.Errorf("reading overlay file: %v", err)
    	}
    
    	var overlayJSON OverlayJSON
    	if err := json.Unmarshal(b, &overlayJSON); err != nil {
    		return fmt.Errorf("parsing overlay JSON: %v", err)
    	}
    
    	return initFromJSON(overlayJSON)
    }
    
    func initFromJSON(overlayJSON OverlayJSON) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/deploymentcontroller.go

    }
    
    // apply server-side applies a template to the cluster.
    func (d *DeploymentController) apply(controller string, yml string) error {
    	data := map[string]any{}
    	err := yaml.Unmarshal([]byte(yml), &data)
    	if err != nil {
    		return err
    	}
    	us := unstructured.Unstructured{Object: data}
    	// set managed-by label
    	clabel := strings.ReplaceAll(controller, "/", "-")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. pkg/controller/daemon/update.go

    // recorded patches.
    func getPatch(ds *apps.DaemonSet) ([]byte, error) {
    	dsBytes, err := json.Marshal(ds)
    	if err != nil {
    		return nil, err
    	}
    	var raw map[string]interface{}
    	err = json.Unmarshal(dsBytes, &raw)
    	if err != nil {
    		return nil, err
    	}
    	objCopy := make(map[string]interface{})
    	specCopy := make(map[string]interface{})
    
    	// Create a patch of the DaemonSet that replaces spec.template
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    		force = *p.options.Force
    	}
    	if p.fieldManager == nil {
    		panic("FieldManager must be installed to run apply")
    	}
    
    	patchObj := &unstructured.Unstructured{Object: map[string]interface{}{}}
    	if err := yaml.Unmarshal(p.patch, &patchObj.Object); err != nil {
    		return nil, errors.NewBadRequest(fmt.Sprintf("error decoding YAML: %v", err))
    	}
    
    	obj, err := p.fieldManager.Apply(obj, patchObj, p.options.FieldManager, force)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/cache.go

    		if cfg.GOPROXY == "off" {
    			if file, info, err := readDiskStatByHash(ctx, path, rev); err == nil {
    				return file, info, nil
    			}
    		}
    		return file, nil, err
    	}
    	info = new(RevInfo)
    	if err := json.Unmarshal(data, info); err != nil {
    		return file, nil, errNotCached
    	}
    	// The disk might have stale .info files that have Name and Short fields set.
    	// We want to canonicalize to .info files with those fields omitted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top