misc

package
v0.6.15 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfErr

func CheckIfErr(err error, stacks ...types.Stack)

CheckIfErr func

func CombineVars

func CombineVars(leftVars, rightVars interface{}) map[string]interface{}

CombineVars func

func DeleteKey

func DeleteKey(vars *interface{}, key string)

DeleteKey func

func FindPath

func FindPath(dir string, searchPaths ...string) (output string, err error)

FindPath func

func FindStackFileInDir

func FindStackFileInDir(dir string) (stackFile string)

FindStackFileInDir func

func GetDirName

func GetDirName(fullpath string) (dirName string)

GetDirName func

func GetDirPath

func GetDirPath(fullpath string) (dirPath string)

GetDirPath func

func GetDirsByRegexp

func GetDirsByRegexp(pwd string, pattern string) (dirs []string)

GetDirsByRegexp func

func GetObject

func GetObject(root interface{}, path string) interface{}

GetObject func

func GetObjectValue

func GetObjectValue(object interface{}, key string) interface{}

GetObjectValue func

func GetRealKeyName

func GetRealKeyName(vars interface{}, key string) string

GetRealKeyName func

func GetRealVars

func GetRealVars(vars interface{}) interface{}

GetRealVars func

func GetStackPathRelativeToTheRootStack added in v0.6.4

func GetStackPathRelativeToTheRootStack(stack types.Stack) (output string)

GetStackPathRelativeToTheRootStack func

func GetVar

func GetVar(vars interface{}, key string) (interface{}, bool)

GetVar func

func GitClone

func GitClone(parentWG *sync.WaitGroup, gitClonePath, gitURL, gitRef string, fetchIfExists bool, noWaitForOthers bool)

GitClone func

func KeyIsExist

func KeyIsExist(str string, stringMap map[string]interface{}) bool

KeyIsExist func

func LoadYAML

func LoadYAML(yamlInput string, result interface{})

LoadYAML func

func LoadYAMLFromFile

func LoadYAMLFromFile(fileName string, result interface{})

LoadYAMLFromFile func

func LoadYAMLFromSopsFile

func LoadYAMLFromSopsFile(fileName string, result interface{})

LoadYAMLFromSopsFile func

func PathIsDir

func PathIsDir(path string) bool

PathIsDir func

func PathIsExists

func PathIsExists(path string) bool

PathIsExists returns whether the given file or directory exists

func PathIsFile added in v0.6.3

func PathIsFile(path string) bool

PathIsFile func

func PrintStackTrace added in v0.6.13

func PrintStackTrace(stack types.Stack)

PrintStackTrace func

func ReadFileFromPath

func ReadFileFromPath(path string) (output string)

ReadFileFromPath func

func SetRealKeys

func SetRealKeys(vars interface{}) interface{}

SetRealKeys sets + recursively to map keys

func ToInterface

func ToInterface(object interface{}) (result interface{})

ToInterface func

func ToJSON

func ToJSON(object interface{}) string

ToJSON func

func ToYAML

func ToYAML(object interface{}) string

ToYAML func

func UniqueStr

func UniqueStr(input []string) (output []string)

UniqueStr func

func WaitTimeout

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool

WaitTimeout waits for the waitgroup for the specified max timeout. Returns true if waiting timed out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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