gotmpl

package
v0.12.2 Latest Latest
Warning

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

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

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 added in v0.12.0

type ApplierConfig func(*applier)

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

func WithGoTmplOptions added in v0.12.0

func WithGoTmplOptions(goTmplOptions ...string) ApplierConfig

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

Jump to

Keyboard shortcuts

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