Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for marshaling (0.16 sec)

  1. doc/next/6-stdlib/99-minor/encoding/binary/60023.md

    The new [Encode] and [Decode] functions are byte slice equivalents
    to [Read] and [Write].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:58:26 UTC 2024
    - 157 bytes
    - Viewed (0)
  2. pilot/pkg/model/extensions.go

    	if plugin.PluginConfig != nil && len(plugin.PluginConfig.Fields) > 0 {
    		cfgJSON, err := protomarshal.ToJSON(plugin.PluginConfig)
    		if err != nil {
    			log.Warnf("wasmplugin %v/%v discarded due to json marshaling error: %s", p.Namespace, p.Name, err)
    			return nil
    		}
    		cfg = protoconv.MessageToAny(&wrapperspb.StringValue{
    			Value: cfgJSON,
    		})
    	}
    
    	u, err := url.Parse(plugin.Url)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/api/testing/unstructured_test.go

    	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 {
    		t.Errorf("Error when marshaling unstructured: %v", err)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/syscall/dir_plan9.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Plan 9 directory marshaling. See intro(5).
    
    package syscall
    
    import (
    	"errors"
    	"internal/byteorder"
    )
    
    var (
    	ErrShortStat = errors.New("stat buffer too short")
    	ErrBadStat   = errors.New("malformed stat buffer")
    	ErrBadName   = errors.New("bad character in file name")
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    */
    
    package v1
    
    import (
    	"encoding/json"
    	"time"
    
    	cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"
    )
    
    // Time is a wrapper around time.Time which supports correct
    // marshaling to YAML and JSON.  Wrappers are provided for many
    // of the factory methods that the time package offers.
    //
    // +protobuf.options.marshal=false
    // +protobuf.as=Timestamp
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. pkg/test/kube/dump.go

    	pods = podsOrFetch(c, pods, namespace)
    
    	for _, pod := range pods {
    		out, err := yaml.Marshal(&pod)
    		if err != nil {
    			scopes.Framework.Warnf("Error marshaling pod state for output: %v", err)
    			continue
    		}
    
    		outPath := podOutputPath(workDir, c, pod, "pod-state.yaml")
    		if err := os.WriteFile(outPath, out, os.ModePerm); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  7. pilot/pkg/features/pilot.go

    		"If enabled, certificates received by the proxy will be verified against the OS CA certificate bundle.").Get()
    
    	EnableVtprotobuf = env.Register("ENABLE_VTPROTOBUF", true,
    		"If true, will use optimized vtprotobuf based marshaling. Requires a build with -tags=vtprotobuf.").Get()
    
    	GatewayAPIDefaultGatewayClass = env.Register("PILOT_GATEWAY_API_DEFAULT_GATEWAYCLASS_NAME", "istio",
    		"Name of the default GatewayClass").Get()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/kube.go

    	}
    	if operatorCfg.Spec == nil {
    		operatorCfg.Spec = &opAPI.IstioOperatorSpec{}
    	}
    
    	// marshaling entire operatorCfg causes panic because of *time.Time in ObjectMeta
    	outb, err := yaml.Marshal(operatorCfg.Spec)
    	if err != nil {
    		return nil, fmt.Errorf("failed marshaling iop spec: %v", err)
    	}
    
    	out := fmt.Sprintf(`
    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    			*p.ResourceVersion,
    			objMeta.GetResourceVersion())
    		return NewInvalidObjError(key, err)
    	}
    	return nil
    }
    
    // Interface offers a common interface for object marshaling/unmarshaling operations and
    // hides all the storage-related operations behind it.
    type Interface interface {
    	// Returns Versioner associated with this interface.
    	Versioner() Versioner
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    limitations under the License.
    */
    
    // The tests in this package focus on the correctness of its implementation of
    // runtime.Serializer. The specific behavior of marshaling Go values to CBOR bytes and back is
    // tested in the ./internal/modes package, which is used both by the Serializer implementation and
    // the package-scoped Marshal/Unmarshal functions in the ./direct package.
    package cbor
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top