Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExpiringCache ¶ added in v0.9.0
type ExpiringCache interface { // Get looks up an entry in the cache. Get(key interface{}) (value interface{}, ok bool) // Set sets a key/value/ttl entry in the cache, overwriting any previous entry with the same key. Set(key interface{}, value interface{}, ttl time.Duration) // Delete deletes an entry from the cache. Delete(key interface{}) }
ExpiringCache is a map whose entries expire after a per-entry timeout.
type Timestamper ¶
Timestamper provides a function for getting the current local time.
type TimestamperFunc ¶
TimestamperFunc is a function that implements Timestamper, e.g. metav1.Now().
func (TimestamperFunc) Now ¶
func (f TimestamperFunc) Now() metav1.Time
Now returns the current local time.
Click to show internal directories.
Click to hide internal directories.