util

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package util provides utilities for developing kpt-functions.

Index

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

Jump to

Keyboard shortcuts

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