util

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMap

func CopyMap(m map[string]interface{}) map[string]interface{}

CopyMap takes in a map and returns a deep copy of it; not modifying the original at all

func FlattenMap

func FlattenMap(nestedMap map[string]interface{}, keySeperator string, parentKeys []string) map[string]interface{}

FlattenMap will flatten a map of maps to a flat map with keys being seperated by `keySeperator` This is an immutable function, the original map is not modified and a new map is returned

func ListComponentInstallDirectories

func ListComponentInstallDirectories(directory string) (componentDirs []string, err error)

ListComponentInstallDirectories returns all subdirectories in `directory` which have have the name "components" or "helm_repos"; this is mainly used as a helper function for cleaning up test `Install`s

func MergeMap

func MergeMap(originalMap map[string]interface{}, newValues map[string]interface{}) map[string]interface{}

MergeMap takes in two maps and does an immutable merge of the two; applying the new onto the original. This is done immutably; Neither input maps are modified and a deep copy of the original is created, modified, and returned.

func UninstallComponents

func UninstallComponents(path string) (err error)

UninstallComponents uninstalls any components in any subdirectory under `path`. Equivalent to `rm -rf **/components **/helm_repos`

Types

This section is empty.

Jump to

Keyboard shortcuts

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