Documentation
¶
Index ¶
- func AssertDeepEqual(t *testing.T, expectedStringMap, actualStringMap map[string]string) bool
- func DaysToHours(days int) time.Duration
- func HumanizedDurationString(duration time.Duration) string
- func LabelSetContains(labelSet client.LabelSet, subLabelSet client.LabelSet) bool
- func StringMapContains(stringMap map[string]string, str string) bool
- func StringSliceContains(stringSlice []string, searchString string) bool
- func TimeUntilNextMonday(t0 time.Time) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
AssertDeepEqual asserts two map[strings]string are equal
func DaysToHours ¶
DaysToHours returns the given number of days in hours
func HumanizedDurationString ¶
HumanizedDurationString returns a humanized string of a duration examples: 8h0m0s => 8 hours, 168h0m0s => 1 week
func LabelSetContains ¶
LabelSetContains checks whether a LabelSet contains another LabelSet
func StringMapContains ¶
StringMapContains checks whether a map[string]string contains a string.
func StringSliceContains ¶
StringSliceContains checks whether a string slice contains a string.
func TimeUntilNextMonday ¶
TimeUntilNextMonday returns the number of days until the next monday
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.