Documentation
¶
Overview ¶
Package utils contains the utility functions for the dask-operator
Index ¶
- func ApplyTemplate(s string, context dtypes.DaskContext) (string, error)
- func CheckJobScript(script string) (string, string, bool, error)
- func ConvertKeysToString(i interface{}) interface{}
- func Debugf(log logr.Logger, format string, a ...interface{})
- func Errorf(log logr.Logger, err error, format string, a ...interface{})
- func FuncMap() template.FuncMap
- func Infof(log logr.Logger, format string, a ...interface{})
- func YamlToMap(s string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
func ApplyTemplate(s string, context dtypes.DaskContext) (string, error)
ApplyTemplate take YAML template and interpolates context vars then returns JSON
func CheckJobScript ¶
CheckJobScript - check what sort of script has been passed to the DaskJob
func ConvertKeysToString ¶
func ConvertKeysToString(i interface{}) interface{}
recursive call to convert map keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.