Documentation ¶
Index ¶
- func Base64Decode(encodedReader io.Reader) ([]byte, error)
- func DecompressBzip2(compressedBytes []byte) (io.Reader, error)
- func DurationExceeded(duration time.Duration) bool
- func DurationSecondsPtr(d time.Duration) *int64
- func IsTTLExpired(ttl time.Duration, creationTime time.Time, clock ext.Clock) (bool, time.Duration)
- func MapKinds(kinds []string) []string
- func NextCronDuration(cronString string, creationTime time.Time, clock ext.Clock) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶ added in v0.1.7
Base64Decode accept encoded reader and base64 decode it
func DecompressBzip2 ¶ added in v0.1.7
DecompressBzip2 accept bzip2 compressed bytes and decompress it #nosec
func DurationExceeded ¶
DurationExceeded check if duration is now meaning zero
func DurationSecondsPtr ¶ added in v0.1.3
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.