Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 205 for marshaled (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    func doRoundTrip(t *testing.T, item interface{}) {
    	data, err := json.Marshal(item)
    	if err != nil {
    		t.Errorf("Error when marshaling object: %v", err)
    		return
    	}
    
    	unstr := make(map[string]interface{})
    	err = json.Unmarshal(data, &unstr)
    	if err != nil {
    		t.Errorf("Error when unmarshaling to unstructured: %v", err)
    		return
    	}
    
    	data, err = json.Marshal(unstr)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  2. src/net/rpc/server.go

      - the method has return type error.
    
    In effect, the method must look schematically like
    
    	func (t *T) MethodName(argType T1, replyType *T2) error
    
    where T1 and T2 can be marshaled by encoding/gob.
    These requirements apply even if a different codec is used.
    (In the future, these requirements may soften for custom codecs.)
    
    The method's first argument represents the arguments provided by the caller; the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster_builder.go

    		},
    	},
    })
    
    // clusterWrapper wraps Cluster object along with upstream protocol options.
    type clusterWrapper struct {
    	cluster *cluster.Cluster
    	// httpProtocolOptions stores the HttpProtocolOptions which will be marshaled when build is called.
    	httpProtocolOptions *http.HttpProtocolOptions
    }
    
    // metadataCerts hosts client certificate related metadata specified in proxy metadata.
    type metadataCerts struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  4. src/crypto/sha256/sha256_test.go

    					t.Errorf("sha%s(%q) = 0x%x != marshaled 0x%x", tt.name, g.in, actual, actual2)
    				}
    			}
    		})
    	}
    }
    
    func TestMarshalTypeMismatch(t *testing.T) {
    	h1 := New()
    	h2 := New224()
    
    	state1, err := h1.(encoding.BinaryMarshaler).MarshalBinary()
    	if err != nil {
    		t.Errorf("could not marshal: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/apis/kubeadm/types.go

    // ClusterConfiguration is.
    type InitConfiguration struct {
    	metav1.TypeMeta
    
    	// ClusterConfiguration holds the cluster-wide information, and embeds that struct (which can be (un)marshalled separately as well)
    	// When InitConfiguration is marshalled to bytes in the external version, this information IS NOT preserved (which can be seen from
    	// the `json:"-"` tag in the external variant of these API types.
    	ClusterConfiguration `json:"-"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  6. pkg/adsc/adsc.go

    	Locality *core.Locality
    }
    
    type ResponseHandler interface {
    	HandleResponse(con *ADSC, response *discovery.DiscoveryResponse)
    }
    
    // jsonMarshalProtoWithName wraps a proto.Message with name so it can be marshaled with the standard encoding/json library
    type jsonMarshalProtoWithName struct {
    	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    	Message proto.Message
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. pilot/pkg/model/context.go

    				Annotations: annotations,
    			}, meshConfig); generatedProxyConfig != nil {
    			return generatedProxyConfig
    		}
    	}
    	return mesh.DefaultProxyConfig()
    }
    
    // Resources is an alias for array of marshaled resources.
    type Resources = []*discovery.Resource
    
    // DeletedResources is an alias for array of strings that represent removed resources in delta.
    type DeletedResources = []string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  8. pilot/pkg/xds/debug.go

    		return
    	}
    }
    
    // jsonMarshalProto wraps a proto.Message so it can be marshaled with the standard encoding/json library
    type jsonMarshalProto struct {
    	proto.Message
    }
    
    func (p jsonMarshalProto) MarshalJSON() ([]byte, error) {
    	return protomarshal.Marshal(p.Message)
    }
    
    // writeJSON writes a json payload, handling content type, marshaling, and errors
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  9. src/internal/fuzz/fuzz.go

    	// between 4-7 times and 8-15 times.
    	coverageMask []byte
    }
    
    func newCoordinator(opts CoordinateFuzzingOpts) (*coordinator, error) {
    	// Make sure all the seed corpus has marshaled data.
    	for i := range opts.Seed {
    		if opts.Seed[i].Data == nil && opts.Seed[i].Values != nil {
    			opts.Seed[i].Data = marshalCorpusFile(opts.Seed[i].Values...)
    		}
    	}
    	c := &coordinator{
    		opts:        opts,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/gateway.go

    			continue
    		}
    		listeners = append(listeners, ml.mutable.Listener)
    	}
    	// We'll try to return any listeners we successfully marshaled; if we have none, we'll emit the error we built up
    	err := errs.ErrorOrNil()
    	if err != nil {
    		// we have some listeners to return, but we also have some errors; log them
    		log.Info(err.Error())
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
Back to top