render

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ManifestFileSuffix = []string{"yaml", "yml", "json"}

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	// RenderObjects renders kubernetes objects using provided TemplatingData
	RenderObjects(data *TemplatingData) ([]*unstructured.Unstructured, error)
}

Renderer renders k8s objects from a manifest source dir and TemplatingData used by the templating engine

func NewRenderer

func NewRenderer(files []string) Renderer

NewRenderer creates a Renderer object, that will render all template files provided. file format needs to be either json or yaml.

type TemplatingData

type TemplatingData struct {
	// Funcs are additional Functions used during the templating process
	Funcs template.FuncMap
	// Data used for the rendering process
	Data interface{}
}

TemplatingData is used by the templating engine to render templates

Jump to

Keyboard shortcuts

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