util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertYAMLtoJSONHelper

func ConvertYAMLtoJSONHelper(i interface{}) interface{}

ConvertYAMLtoJSONHelper converts the yaml to json recursively

func GetEnvOrPanic

func GetEnvOrPanic(name string) string

GetEnvOrPanic will get an environment variable, panicking if it does not exist.

func Poll

func Poll(timeoutMinutes int, f func() (bool, error)) error

Poll will run f every 10 seconds until it returns true or the timout is reached.

func ReadInYAMLFileAndConvert

func ReadInYAMLFileAndConvert(pathToYamlFile string, crd interface{}) interface{}

ReadInYAMLFileAndConvert reads in the yaml file given by the path given

Types

This section is empty.

Jump to

Keyboard shortcuts

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