Documentation ¶
Index ¶
- Constants
- func FilesInDir(path []string) (res []string, err error)
- func FindPossibleTemplatesDir(root string) (res []string)
- func ReadFiles(s ...string) (res []string)
- func Render(strings []string, values, d map[string]interface{}) (string, error)
- func RenderWithValues(rawFiles []string, valuesFile string, defaultFile ...string) (string, error)
- func String(t string, i interface{}) (string, error)
- func UnMarshalValues(values []string) (templatedata, error)
Constants ¶
View Source
const Directory = "templates"
Variables ¶
This section is empty.
Functions ¶
func FilesInDir ¶
ReadFilesInDir reads a list of paths and reads all yaml file inside. It returns a slice of strings with the raw content of the yaml
func FindPossibleTemplatesDir ¶
FindPossibleTemplatesDir returns templates dir located at root
func ReadFiles ¶
ReadFiles reads all the given files and returns a slice of []*chart.File containing the raw content and the file name for each file
func RenderWithValues ¶
RenderWithValues render a group of files with values files
func UnMarshalValues ¶
UnMarshalValues unmarshal values files and joins them into a unique templatedata the join happens from right to left, so any rightmost value file overwrites the content of the ones before it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.