Documentation
¶
Index ¶
- Constants
- func ContainsString(slice []string, str string) bool
- func ConvertMultilineEntrypoint(entrypoint string, isRayJob bool) interface{}
- func Debug(logger logr.Logger, fmt string, keysAndValues ...any)
- func FormatNameWithPostfix(name string, postfix ...string) string
- func GetCurrentUser() (string, error)
- func GetEnv(key, defaultValue string) string
- func GetGVK(scheme runtime.Scheme, object client.Object) (schema.GroupVersionKind, error)
- func LogErrorf(logger logr.Logger, message string, err error) error
- func MakeRFC1123Compliant(input string) string
- func Pointer[T any](d T) *T
- func RemoveString(slice []string, str string) []string
- func Trace(logger logr.Logger, fmt string, keysAndValues ...any)
- func ValueOrDefault[T any](d *T) T
Constants ¶
View Source
const ( DebugLogLevel = 1 TraceLogLevel = 2 )
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func FormatNameWithPostfix ¶
func GetCurrentUser ¶
func LogErrorf ¶
LogErrorf takes care of logging the error message with logr, as well as creating the error object to return
func MakeRFC1123Compliant ¶
func RemoveString ¶
func ValueOrDefault ¶
func ValueOrDefault[T any](d *T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.