Documentation
¶
Index ¶
- func ConvertMapInterfaceMapString(v interface{}) interface{}
- func CreateClusterName(name, vmName string) string
- func ExitIfNotNil(err error)
- func ForceLink(file1, file2 string) error
- func MapFromYAML(yamlByt []byte) (map[string]interface{}, error)
- func MapGet(mp map[string]interface{}, key ...string) (interface{}, bool)
- func MapSet(mp map[string]interface{}, value interface{}, key ...string)
- func MapSetFn(mp map[string]interface{}, fn func(interface{}) (interface{}, bool), ...)
- func MapToYAML(mp map[string]interface{}) ([]byte, error)
- func RecursiveCastMapStringInterfaceToMapStringInterface(in map[string]interface{}) map[string]interface{}
- func SigIntHandler(handler func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMapInterfaceMapString ¶
func ConvertMapInterfaceMapString(v interface{}) interface{}
ConvertMapInterfaceMapString converts map[interface{}]interface{} => map[string]interface{}
It will also convert []interface{} => []string
func CreateClusterName ¶ added in v0.0.4
CreateClusterName takes the name of the cluster and vm name and returns the name of the cluster
func ExitIfNotNil ¶
func ExitIfNotNil(err error)
ExitIfNotNil exits the process with status 1 and error with the error passed to the function is not nil
func MapFromYAML ¶
func MapSet ¶
MapSet takes in the map that needs to be manipulated, the value that needs to be assgined to be assigned and the key - each key goes one level deeper in the map
func RecursiveCastMapStringInterfaceToMapStringInterface ¶
func RecursiveCastMapStringInterfaceToMapStringInterface(in map[string]interface{}) map[string]interface{}
RecursiveCastMapStringInterfaceToMapStringInterface will convert a map[string]interface{} recursively => map[string]interface{}
func SigIntHandler ¶ added in v0.0.4
func SigIntHandler(handler func())
SigIntHandler takes a handler which will be called when SIGINT is received
Types ¶
This section is empty.