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

Method Timeout

rest/request.go:362–368  ·  view source on GitHub ↗

Timeout makes the request use the given duration as an overall timeout for the request. Additionally, if set passes the value as "timeout" parameter in URL.

(d time.Duration)

Source from the content-addressed store, hash-verified

360// Timeout makes the request use the given duration as an overall timeout for the
361// request. Additionally, if set passes the value as "timeout" parameter in URL.
362func (r *Request) Timeout(d time.Duration) *Request {
363 if r.err != nil {
364 return r
365 }
366 r.timeout = d
367 return r
368}
369
370// Body makes the request use obj as the body. Optional.
371// If obj is a string, try to read a file of that name.

Callers 15

ListMethod · 0.80
WatchMethod · 0.80
DeleteCollectionMethod · 0.80
ListMethod · 0.80
WatchMethod · 0.80
DeleteCollectionMethod · 0.80
ListMethod · 0.80
WatchMethod · 0.80
DeleteCollectionMethod · 0.80
ListMethod · 0.80
WatchMethod · 0.80
DeleteCollectionMethod · 0.80

Calls

no outgoing calls

Tested by 9

TestDoRequestNewWayFunction · 0.64
TestCheckRetryClosesBodyFunction · 0.64
TestDoRequestNewWayObjFunction · 0.64
TestDoRequestNewWayFileFunction · 0.64
TestWasCreatedFunction · 0.64