internal

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SafeYAMLAnnotation = "bundle.gke.io/safe-yaml"

SafeYAMLAnnotation is an annotation that can be put on a component that indicates that the component should be processed with the SafeYAML library rather than the default library.

Variables

This section is empty.

Functions

func HasSafeYAMLAnnotation added in v0.14.1

func HasSafeYAMLAnnotation(objmeta metav1.ObjectMeta) bool

HasSafeYAMLAnnotation returns whether ObjectMeta contains the SafeYAMLAnnotation.

Types

type Templater

type Templater struct {
	// contains filtered or unexported fields
}

Templater provides templating functionality for YAML templating.

func NewTemplater

func NewTemplater(tmplName, templateDoc string, funcs map[string]interface{}, useSafeYAMLTemplater bool) (*Templater, error)

NewTemplater creates a new Templater.

func (*Templater) Execute

func (t *Templater) Execute(wr io.Writer, data any) error

Execute executes the template rendering.

func (*Templater) Option

func (t *Templater) Option(opt ...string) *Templater

Option sets an option on the underlying Templater.

Jump to

Keyboard shortcuts

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