- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewClientNegotiator (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/negotiate.go
} // NewClientNegotiator will attempt to retrieve the appropriate encoder, decoder, or // stream decoder for a given content type. Does not perform any conversion, but will // encode the object to the desired group, version, and kind. Use when creating a client. func NewClientNegotiator(serializer NegotiatedSerializer, gv schema.GroupVersion) ClientNegotiator {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 29 19:55:06 UTC 2020 - 3.7K bytes - Viewed (0) -
pkg/client/tests/remotecommand_test.go
defer server.Close() url, _ := url.ParseRequestURI(server.URL) config := restclient.ClientContentConfig{ GroupVersion: schema.GroupVersion{Group: "x"}, Negotiator: runtime.NewClientNegotiator(legacyscheme.Codecs.WithoutConversion(), schema.GroupVersion{Group: "x"}), } c, err := restclient.NewRESTClient(url, "", config, nil, nil) if err != nil { t.Fatalf("failed to create a client: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go
DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder } // ClientNegotiator handles turning an HTTP content type into the appropriate encoder. // Use NewClientNegotiator or NewVersionedClientNegotiator to create this interface from // a NegotiatedSerializer. type ClientNegotiator interface { // Encoder returns the appropriate encoder for the provided contentType (e.g. application/json)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 19K bytes - Viewed (0)