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

Method CalculateBackoff

rest/urlbackoff.go:37–37  ·  view source on GitHub ↗
(actualUrl *url.URL)

Source from the content-addressed store, hash-verified

35type BackoffManager interface {
36 UpdateBackoff(actualUrl *url.URL, err error, responseCode int)
37 CalculateBackoff(actualUrl *url.URL) time.Duration
38 Sleep(d time.Duration)
39}
40

Callers 5

TestCreateBackoffManagerFunction · 0.65
StreamMethod · 0.65
requestMethod · 0.65
TestBackoffLifecycleFunction · 0.65

Implementers 3

testBackoffManagerrest/request_test.go
NoBackoffrest/urlbackoff.go
URLBackoffrest/urlbackoff.go

Calls

no outgoing calls

Tested by 2

TestCreateBackoffManagerFunction · 0.52
TestBackoffLifecycleFunction · 0.52