package
0.0.0-20241210054802-24370beab758
Repository: https://github.com/kubernetes/utils.git
Documentation: pkg.go.dev
# README
Clock
This package provides an interface for time-based operations. It allows mocking time for testing.
# Packages
No description provided by the author
# Interfaces
Clock allows for injecting fake or real clocks into code that needs to do arbitrary things based on time.
PassiveClock allows for injecting fake or real clocks into code that needs to read the current time but does not support scheduling activity in the future.
Ticker defines the Ticker interface.
Timer allows for injecting fake or real timers into code that needs to do arbitrary things based on time.
WithDelayedExecution allows for injecting fake or real clocks into code that needs to make use of AfterFunc functionality.
WithTicker allows for injecting fake or real clocks into code that needs to do arbitrary things based on time.
WithTickerAndDelayedExecution allows for injecting fake or real clocks into code that needs Ticker and AfterFunc functionality.