Documentation ¶
Index ¶
- type ErrNoTable
- type ErrNoValue
- type ReleaseOptions
- type Values
- func CoalesceValues(chrt *chart.Chart, vals map[string]interface{}) (Values, error)
- func ReadValues(data []byte) (vals Values, err error)
- func ReadValuesFile(filename string) (Values, error)
- func ToRenderValues(chrt *chart.Chart, options ReleaseOptions, chrtVals map[string]interface{}) (Values, error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNoTable ¶
type ErrNoTable struct {
Key string
}
ErrNoTable indicates that a chart does not have a matching table.
func (ErrNoTable) Error ¶
func (e ErrNoTable) Error() string
type ErrNoValue ¶
type ErrNoValue struct {
Key string
}
ErrNoValue indicates that Values does not contain a key with a value
func (ErrNoValue) Error ¶
func (e ErrNoValue) Error() string
type ReleaseOptions ¶
type Values ¶
type Values map[string]interface{}
Values represents a collection of chart values.
Example ¶
doc := ` title: "Moby Dick" chapter: one: title: "Loomings" two: title: "The Carpet-Bag" three: title: "The Spouter Inn" ` d, err := ReadValues([]byte(doc)) if err != nil { panic(err) } ch1, err := d.Table("chapter.one") if err != nil { panic("could not find chapter one") } fmt.Print(ch1["title"])
Output: Loomings
func CoalesceValues ¶
func ReadValues ¶
ReadValues will parse YAML byte data into a Values.
func ReadValuesFile ¶
ReadValuesFile will parse a YAML file into a map of values.
func ToRenderValues ¶
func (Values) AsMap ¶
AsMap is a utility function for converting Values to a map[string]interface{}.
It protects against nil map panics.
Click to show internal directories.
Click to hide internal directories.