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

Method Param

rest/request.go:307–312  ·  view source on GitHub ↗

Param creates a query parameter with the given string value.

(paramName, s string)

Source from the content-addressed store, hash-verified

305
306// Param creates a query parameter with the given string value.
307func (r *Request) Param(paramName, s string) *Request {
308 if r.err != nil {
309 return r
310 }
311 return r.setParam(paramName, s)
312}
313
314// VersionedParams will take the provided object, serialize it to a map[string][]string using the
315// implicit RESTClient API version and the default parameter codec, and then add those as parameters

Callers 6

ProxyGetMethod · 0.80
TestRequestParamFunction · 0.80
TestRequestURIFunction · 0.80
TestURLTemplateFunction · 0.80

Calls 1

setParamMethod · 0.95

Tested by 5

TestRequestParamFunction · 0.64
TestRequestURIFunction · 0.64
TestURLTemplateFunction · 0.64