Documentation
¶
Overview ¶
Package utils contains the utility functions for the tango-operator
Index ¶
- func ApplyTemplate(s string, context dtypes.OperatorContext) (string, error)
- func CheckConfig(config string) (string, bool, error)
- func CheckScript(script string, dsname 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.OperatorContext) (string, error)
ApplyTemplate take YAML template and interpolates context vars then returns JSON
func CheckConfig ¶
CheckConfig - check what sort of config has been passed to the DeviceServerJob
func CheckScript ¶
CheckScript - 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.