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.
Click to show internal directories.
Click to hide internal directories.