Documentation
¶
Overview ¶
Original source: https://raw.githubusercontent.com/helm/helm/952708b436bb2c8d5ef0e2e9ef1d8aabe64aeae9/pkg/engine/funcs.go
Index ¶
- func ConvertPath(path string) string
- func ParseYAML(data []byte) (map[interface{}]interface{}, error)
- func PrintJSON(data map[interface{}]interface{}) error
- func PrintYAML(data map[interface{}]interface{}) error
- func SprigFuncMap() template.FuncMap
- func Template(data []byte, values map[interface{}]interface{}) (map[interface{}]interface{}, error)
- func ToInterface(inputMap map[string]interface{}) map[interface{}]interface{}
- func ToMap(i map[interface{}]interface{}) map[string]interface{}
- func UnmarshalJSONorYAML(data []byte) (map[string]interface{}, error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPath ¶
func PrintJSON ¶
func PrintJSON(data map[interface{}]interface{}) error
create a golang function which prints map[interface{}]interface{}
func PrintYAML ¶
func PrintYAML(data map[interface{}]interface{}) error
create a golang function which prints map[interface{}]interface{} as yaml
func SprigFuncMap ¶
funcMap returns a mapping of all of the functions that Engine has.
Because some functions are late-bound (e.g. contain context-sensitive data), the functions may not all perform identically outside of an Engine as they will inside of an Engine.
Known late-bound functions:
- "include"
- "tpl"
These are late-bound in Engine.Render(). The version included in the FuncMap is a placeholder.
func ToInterface ¶
func ToInterface(inputMap map[string]interface{}) map[interface{}]interface{}
Convert converts a map[string]interface{} to a map[interface{}]interface{}.
func ToMap ¶
func ToMap(i map[interface{}]interface{}) map[string]interface{}
convert map[interface{}]interface{} recursive to map[string]string
func UnmarshalJSONorYAML ¶
Types ¶
type File ¶
type File struct { Path string // contains filtered or unexported fields }