Documentation
¶
Index ¶
Constants ¶
View Source
const ( CreatedBy = "silence-operator" ValidUntilAnnotationName = "valid-until" DateOnlyLayout = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidExpirationDate ¶ added in v0.9.0
func IsWrongType ¶
func SilenceComment ¶
func SilenceEndsAt ¶ added in v0.9.0
SilenceEndsAt gets the expiry date for a given silence. The expiry date is retrieved from the annotation name configured by ValidUntilAnnotationName. The expected format is defined by DateOnlyLayout. It returns an invalidExpirationDateError in case the date format is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.