WithClock sets the quartz.Clock implementation to use. This is primarily used for testing to control time.
(clock quartz.Clock)
| 118 | // WithClock sets the quartz.Clock implementation to use. |
| 119 | // This is primarily used for testing to control time. |
| 120 | func WithClock(clock quartz.Clock) Option { |
| 121 | return func(api *API) { |
| 122 | api.clock = clock |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | // WithExecer sets the agentexec.Execer implementation to use. |
| 127 | func WithExecer(execer agentexec.Execer) Option { |
no outgoing calls