MCPcopy
hub / github.com/cert-manager/cert-manager / Add

Method Add

pkg/scheduler/scheduler.go:66–66  ·  view source on GitHub ↗

Add will add an item to this queue, executing the ProcessFunc after the Duration has come (since the time Add was called). If an existing Timer for obj already exists, the previous timer will be cancelled.

(T, time.Duration)

Source from the content-addressed store, hash-verified

64 // Duration has come (since the time Add was called). If an existing Timer
65 // for obj already exists, the previous timer will be cancelled.
66 Add(T, time.Duration)
67
68 // Forget will cancel the timer for the given object, if the timer exists.
69 Forget(T)

Callers 15

TestAddFunction · 0.95
TestForgetFunction · 0.95
TestConcurrentAddFunction · 0.95
NewSimpleClientsetFunction · 0.65
NewClientsetFunction · 0.65
StartMethod · 0.65
getPodsForChallengeMethod · 0.65
withMockDNSQueryFunction · 0.65
FindZoneByFqdnFunction · 0.65

Implementers 3

FakeSchedulerpkg/scheduler/test/fake.go
mockWorkqueuepkg/controller/certificate-shim/listen
mockWorkqueuepkg/controller/certificate-shim/gatewa

Calls

no outgoing calls

Tested by 15

TestAddFunction · 0.76
TestForgetFunction · 0.76
TestConcurrentAddFunction · 0.76
withMockDNSQueryFunction · 0.52
AfterFuncMethod · 0.52
warpMethod · 0.52
TestSyncFunction · 0.52
generateSelfSignedCACertFunction · 0.52
TestCA_SignFunction · 0.52
TestSignFunction · 0.52
TestSignFunction · 0.52