Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NegotiatedSerializerWrapper (0.28 sec)

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

    // serialization formats on
    type negotiatedSerializerWrapper struct {
    	info runtime.SerializerInfo
    }
    
    func NegotiatedSerializerWrapper(info runtime.SerializerInfo) runtime.NegotiatedSerializer {
    	return &negotiatedSerializerWrapper{info}
    }
    
    func (n *negotiatedSerializerWrapper) SupportedMediaTypes() []runtime.SerializerInfo {
    	return []runtime.SerializerInfo{n.info}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/scheme.go

    	jsonInfo.PrettySerializer = nil
    	return rest.ContentConfig{
    		AcceptContentTypes:   runtime.ContentTypeJSON,
    		ContentType:          runtime.ContentTypeJSON,
    		NegotiatedSerializer: serializer.NegotiatedSerializerWrapper(jsonInfo),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 15:58:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. pkg/kubelet/certificate/transport_test.go

    			// We don't care about the server's cert.
    			Insecure: true,
    		},
    		ContentConfig: rest.ContentConfig{
    			// This is a hack. We don't actually care about the serializer.
    			NegotiatedSerializer: serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{}),
    		},
    	}
    
    	// Check for a new cert every 10 milliseconds
    	if _, err := updateTransport(stop, 10*time.Millisecond, c, m, 0); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 18 08:52:58 UTC 2020
    - 7.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/webhook/webhook.go

    		}
    	}
    
    	clientConfig := rest.CopyConfig(config)
    
    	codec := codecFactory.LegacyCodec(groupVersions...)
    	clientConfig.ContentConfig.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec})
    
    	clientConfig.Wrap(x509metrics.NewDeprecatedCertificateRoundTripperWrapperConstructor(
    		x509MissingSANCounter,
    		x509InsecureSHA1Counter,
    	))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    		if err := addToSchemaFunc(hookScheme); err != nil {
    			return ClientManager{}, err
    		}
    	}
    	return ClientManager{
    		cache: cache,
    		negotiatedSerializer: serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{
    			Serializer: serializer.NewCodecFactory(hookScheme).LegacyCodec(gvs...),
    		}),
    	}, nil
    }
    
    // SetAuthenticationInfoResolverWrapper sets the
    // AuthenticationInfoResolverWrapper.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top