rendering

package
v0.0.715-g9be51cf Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const HelmEngine = "helm"

HelmEngine is the helm engine constant to identify the engine type

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Render(content string, values map[string]interface{}) string
	RenderMap(contentMap map[string]string, values map[string]interface{}) map[string]string
}

Engine is an interface representing a generic rendering engine

func NewHelmRenderingEngine

func NewHelmRenderingEngine() Engine

NewHelmRenderingEngine returns a new Helm engine

type HelmRenderingEngine

type HelmRenderingEngine struct{}

HelmRenderingEngine is a rendering engine based on helm which satisfies the RenderingEngine interface

func (HelmRenderingEngine) Render

func (h HelmRenderingEngine) Render(content string, values map[string]interface{}) string

Render renders the template interpolating the supplied values

func (HelmRenderingEngine) RenderFiles

func (h HelmRenderingEngine) RenderFiles(files []*chart.File, values map[string]interface{}, defaults map[string]interface{}) map[string]string

RenderFiles render files as they where charts with helm

func (HelmRenderingEngine) RenderMap

func (h HelmRenderingEngine) RenderMap(contentMap map[string]string, values map[string]interface{}) map[string]string

RenderMap renders the values passed from a map[string]string

Jump to

Keyboard shortcuts

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