utils

package
v0.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package utils contains the utility functions for the tango-operator

Index

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

func CheckConfig(config string) (string, bool, error)

CheckConfig - check what sort of config has been passed to the DeviceServerJob

func CheckScript

func CheckScript(script string, dsname string) (string, string, bool, error)

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

func Debugf

func Debugf(log logr.Logger, format string, a ...interface{})

Debugf helper

func Errorf

func Errorf(log logr.Logger, err error, format string, a ...interface{})

Errorf helper

func FuncMap

func FuncMap() template.FuncMap

FuncMap taken from Helm

func Infof

func Infof(log logr.Logger, format string, a ...interface{})

Infof helper

func YamlToMap

func YamlToMap(s string) (interface{}, error)

YamlToMap converts a YAML string to a JSON string The input string is a byte array, and output is a generic interface{} struct

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL