Documentation
¶
Index ¶
- func DurationExceeded(duration time.Duration) bool
- func IsTTLExpired(ttl time.Duration, creationTime time.Time, clock ext.Clock) (bool, time.Duration)
- func NextCronDuration(cronString string, creationTime time.Time, clock ext.Clock) (time.Duration, error)
- func TransformObjMetadata(obj interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationExceeded ¶
DurationExceeded check if duration is now meaning zero
func IsTTLExpired ¶
IsTTLExpired check whether current time has exceeded creation time + ttl duration
func NextCronDuration ¶
func NextCronDuration(cronString string, creationTime time.Time, clock ext.Clock) (time.Duration, error)
NextCronDuration check if next cron activation time has exceeded if so return true if activation time has not reached return false and remaining time in case it failed to parse cron expression return error
func TransformObjMetadata ¶ added in v0.15.23
func TransformObjMetadata(obj interface{}) (interface{}, error)
TransformObjMetadata removes managed fields and the "kubectl.kubernetes.io/last-applied-configuration" annotation from Kubernetes objects. This ensures that these fields are not stored in the client-go cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.