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

Method Now

util/flowcontrol/throttle.go:56–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54// An injectable, mockable clock interface.
55type Clock interface {
56 Now() time.Time
57 Sleep(time.Duration)
58}
59

Callers 15

TestResyncCheckPeriodFunction · 0.65
AddMethod · 0.65
ReplaceMethod · 0.65
BenchmarkListenerFunction · 0.65
shouldResyncMethod · 0.65
watchHandlerMethod · 0.65
EventAggregateMethod · 0.65
StartRecordingToSinkMethod · 0.65
EventMethod · 0.65
AnnotatedEventfMethod · 0.65

Implementers 1

realClockutil/flowcontrol/throttle.go

Calls

no outgoing calls

Tested by 15

TestResyncCheckPeriodFunction · 0.52
BenchmarkListenerFunction · 0.52
makeEventFunction · 0.52
TestEventCorrelatorFunction · 0.52
TestEventfFunction · 0.52
TestWriteEventErrorFunction · 0.52
TestUpdateExpiredEventFunction · 0.52
TestEventfNoNamespaceFunction · 0.52
TestMultiSinkCacheFunction · 0.52
testTryAcquireOrRenewFunction · 0.52