MCPcopy
hub / github.com/kubernetes/client-go / SpecificallyVersionedParams

Method SpecificallyVersionedParams

rest/request.go:323–339  ·  view source on GitHub ↗
(obj runtime.Object, codec runtime.ParameterCodec, version schema.GroupVersion)

Source from the content-addressed store, hash-verified

321}
322
323func (r *Request) SpecificallyVersionedParams(obj runtime.Object, codec runtime.ParameterCodec, version schema.GroupVersion) *Request {
324 if r.err != nil {
325 return r
326 }
327 params, err := codec.EncodeParameters(obj, version)
328 if err != nil {
329 r.err = err
330 return r
331 }
332 for k, v := range params {
333 if r.params == nil {
334 r.params = make(url.Values)
335 }
336 r.params[k] = append(r.params[k], v...)
337 }
338 return r
339}
340
341func (r *Request) setParam(paramName, value string) *Request {
342 if r.params == nil {

Callers 9

VersionedParamsMethod · 0.95
CreateMethod · 0.80
UpdateMethod · 0.80
UpdateStatusMethod · 0.80
DeleteCollectionMethod · 0.80
GetMethod · 0.80
ListMethod · 0.80
WatchMethod · 0.80
PatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected