Documentation

Overview

Package gotmpl creates objects from ObjectTemplate objects for ObjectTemplates of type "go-template". Once the options are applied to the go template, the ObjectTemplate is removed from the component's list of objects.

The templates are assumed to be YAML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplier

func NewApplier(opts ...ApplierConfig) options.Applier

NewApplier creates a new options applier instance using the specified ApplierConfigs.

Types

type ApplierConfig

type ApplierConfig func(*applier)

ApplierConfig is a config option that can be passed to NewApplier.

func WithGoTmplOptions

func WithGoTmplOptions(goTmplOptions ...string) ApplierConfig

WithGoTmplOptions modifies NewApplier so that the returned Applier uses the specified Go text/template options.