parametrize

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(obj unstructured.Unstructured, inst ...Instruction) ([]byte, error)

Run instructions to procuce a YAML template of the input object.

Types

type Instruction

type Instruction interface {
	Mark(obj map[string]interface{}) error
	Replace(in []byte) ([]byte, error)
	Priority() int // instructions with lower priority get executed first.
}

Instructions get executed to convert an object into a YAML template.

func Block

func Block(exp string, fieldPath string) Instruction

Wrap the given field path into a template block.

func MergeBlock

func MergeBlock(pipeline string, fieldPath string) Instruction

Wrap the given field path into a template block merging data structures.

func Pipeline

func Pipeline(exp string, fieldPath string) Instruction

Insert a go template Pipeline at the given location.

Jump to

Keyboard shortcuts

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