Documentation ¶
Index ¶
- func CreateNamespace(ns string, annotations map[string]string, labels map[string]string) map[string]interface{}
- func DecodeYamls(yamlString string) ([]map[string]interface{}, error)
- func NestedMapLookup(m map[string]interface{}, ks ...string) (rval interface{}, err error)
- func ValidateValues(values map[string]interface{}, requiredFields ...string) (map[string]interface{}, error)
- func WalkDedup(list []map[string]interface{}, f func(element map[string]interface{}))
- type Metadata
- type Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateNamespace(ns string, annotations map[string]string, labels map[string]string) map[string]interface{}
CreateNamespace generates a map with namespace definitions
func DecodeYamls ¶
DecodeYamls parse a list of yamls defined on a string to a list of maps
func NestedMapLookup ¶
NestedMapLookup as found on https://gist.github.com/ChristopherThorpe/fd3720efe2ba83c929bf4105719ee967 m: a map from strings to other maps or values, of arbitrary depth ks: successive keys to reach an internal or leaf node (variadic) If an internal node is reached, will return the internal map
Returns: (Exactly one of these will be nil) rval: the target node (if found) err: an error created by fmt.Errorf
Types ¶
Click to show internal directories.
Click to hide internal directories.