Documentation
¶
Index ¶
- func CopyMap(m map[string]interface{}) map[string]interface{}
- func FlattenMap(nestedMap map[string]interface{}, keySeperator string, parentKeys []string) map[string]interface{}
- func ListComponentInstallDirectories(directory string) (componentDirs []string, err error)
- func MergeMap(originalMap map[string]interface{}, newValues map[string]interface{}) map[string]interface{}
- func UninstallComponents(path string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyMap ¶
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 ¶
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 ¶
UninstallComponents uninstalls any components in any subdirectory under `path`. Equivalent to `rm -rf **/components **/helm_repos`
Types ¶
This section is empty.