Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewRawSerializer (0.35 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go

    }
    
    func BenchmarkRawProtobufEncoder(b *testing.B) {
    	benchmarkEncodeFor(b, protobuf.NewRawSerializer(nil, nil))
    }
    
    func BenchmarkRawProtobufEncodeWithAllocator(b *testing.B) {
    	benchmarkEncodeWithAllocatorFor(b, protobuf.NewRawSerializer(nil, nil))
    }
    
    func benchmarkEncodeFor(b *testing.B, target runtime.Encoder) {
    	for _, tc := range benchTestCases() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    	creater := &mockCreater{obj: &runtimetesting.MockCacheableObject{}}
    	typer := &mockTyper{gvk: &gvk}
    
    	encoders := []runtime.Encoder{
    		NewSerializer(creater, typer),
    		NewRawSerializer(creater, typer),
    	}
    
    	for _, encoder := range encoders {
    		runtimetesting.CacheableObjectTest(t, encoder)
    	}
    }
    
    type mockCreater struct {
    	apiVersion string
    	kind       string
    	err        error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    	// protobuf uses 1 byte for the tag, a varint for the length of the array (at most 8 bytes - uint64 - here),
    	// and the size of the array.
    	size += 1 + 8 + byteSize
    	return size
    }
    
    // NewRawSerializer creates a Protobuf serializer that handles encoding versioned objects into the proper wire form. If typer
    // is not nil, the object has the group, version, and kind fields set. This serializer does not provide type information for the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go

    		mf, scheme, scheme,
    		json.SerializerOptions{Yaml: true, Pretty: false, Strict: true},
    	)
    	protoSerializer := protobuf.NewSerializer(scheme, scheme)
    	protoRawSerializer := protobuf.NewRawSerializer(scheme, scheme)
    
    	serializers := []serializerType{
    		jsonSerializerType,
    		{
    			AcceptContentTypes: []string{runtime.ContentTypeYAML},
    			ContentType:        runtime.ContentTypeYAML,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    					MediaTypeSubType: "vnd.kubernetes.protobuf",
    					Serializer:       protobuf.NewSerializer(creator, typer),
    					StreamSerializer: &runtime.StreamSerializerInfo{
    						Serializer: protobuf.NewRawSerializer(creator, typer),
    						Framer:     protobuf.LengthDelimitedFramer,
    					},
    				},
    			},
    		}
    		var standardSerializers []runtime.SerializerInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
Back to top