# Functions
AddStringIfMissing adds a string to a slice of strings The provided slice is not changed returns true, slice with appended string if string was not in the list returns false, old list if string was already in the list.
IsZeroDuration returns true if duration is nil or duration is zero seconds.
Metav1Duration converts a time.Duration to a metav1.Duration pointer.
RandomAlphaNumString generates a random string value consisting of [0-9a-z] with a length as configured.
RemoveString removes a string from a slice of strings The provided slice is not changed returns true, slice with removed string if string was contained in the list returns false, old list if string was not in the list.
ShortenMessage removes line breaks and shortens the message.
StringSliceContains determines whether the given string slice contains a given element.
ToJSONString converts value to JSON string.
Trim removes blanks.