internal

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplate

func ExecuteTemplate(text string, values interface{}) (result string, err error)

ExecuteTemplate runs a template

func FromJson

func FromJson(str string) map[string]interface{}

FromJson converts a JSON document into a map[string]interface{}.

func FromYaml

func FromYaml(str string) map[string]interface{}

FromYaml converts a YAML document into a map[string]interface{}.

func Render

func Render(inPath, outPath string, valueFiles []string)

Render will apply templating on all files in given directory

func ToJson

func ToJson(v interface{}) string

ToJson takes an interface, marshals it to json, and returns a string.

func ToYaml

func ToYaml(v interface{}) string

ToYaml converts and interface to yaml

Types

type Values

type Values map[string]interface{}

Values represents a collection of chart values.

func CoalesceValues

func CoalesceValues(dst, src Values) Values

CoalesceValues merges Values, dst is the authoritative values and takes precedence

func ReadValues

func ReadValues(data []byte) (vals Values, err error)

ReadValues will parse YAML byte data into a Values.

func ReadValuesFile

func ReadValuesFile(filename string) (Values, error)

ReadValuesFile will parse a YAML file into a map of values.

Jump to

Keyboard shortcuts

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