Documentation ¶
Overview ¶
Package utils provides utilities functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorfOrEmpty ¶
ErrorfOrEmpty returns a message if the error is not nil.
func FormatErrorfOrEmpty ¶
FormatErrorfOrEmpty returns a formatted message if the error is not nil.
func FormatLabels ¶
func FormatLabels(labels []metaschedulerabi.Label) []string
FormatLabels formats labels into a slice of "key: value".
func StringsToLabels ¶
StringsToLabels converts a "key=value,key2=value2" into a slice of labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.