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

Method Context

rest/request.go:416–419  ·  view source on GitHub ↗

Context adds a context to the request. Contexts are only used for timeouts, deadlines, and cancellations.

(ctx context.Context)

Source from the content-addressed store, hash-verified

414// Context adds a context to the request. Contexts are only used for
415// timeouts, deadlines, and cancellations.
416func (r *Request) Context(ctx context.Context) *Request {
417 r.ctx = ctx
418 return r
419}
420
421// URL returns the current working URL.
422func (r *Request) URL() *url.URL {

Callers 1

TestDoContextFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDoContextFunction · 0.64