utils

package
v0.0.0-...-52e46ee Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package utils contains the utility functions for the r-operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(s string, context dtypes.RContext) (string, error)

ApplyTemplate take YAML template and interpolates context vars then returns JSON

func ConvertKeysToString

func ConvertKeysToString(i interface{}) interface{}

recursive call to convert map keys

func FuncMap

func FuncMap() template.FuncMap

FuncMap taken from Helm

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