Documentation ¶ Overview ¶ Package util provides utilities for developing kpt-functions. Index ¶ func MustParseAll(inputs ...Template) []*yaml.RNode func ParseAll(inputs ...Template) ([]*yaml.RNode, error) func SetSetter(n *yaml.RNode, o string) error func SetSetters(object *yaml.RNode, o string) error type Template Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MustParseAll ¶ func MustParseAll(inputs ...Template) []*yaml.RNode MustParseAll parses the Resources from a slice of templates, exiting non-0 if there is an error. func ParseAll ¶ func ParseAll(inputs ...Template) ([]*yaml.RNode, error) ParseAll parses the Resources from a slice of templates func SetSetter ¶ func SetSetter(n *yaml.RNode, o string) error SetFieldSetter func SetSetters ¶ func SetSetters(object *yaml.RNode, o string) error Types ¶ type Template ¶ type Template struct { // Input is the input to a template. Typically the API. Input interface{} // Name is the name of the template. Used if there is an error. Name string // Template is the string template to be parsed. Template string } Template is a template to be parsed Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.