template

package
v0.0.0-...-e29a942 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const SprigVersion = "3.1.0"

SprigVersion contains the semver of the included sprig library it is used in command/version and provided in the sprig_version template function

Variables

This section is empty.

Functions

func RenderJob

func RenderJob(templateFile string, variableFiles []string, addr string, flagVars *map[string]interface{}) (job *nomad.Job, err error)

RenderJob takes in a template and variables performing a render of the template followed by Nomad jobspec parse.

func RenderTemplate

func RenderTemplate(templateFile string, variableFiles []string, addr string, flagVars *map[string]interface{}) (tpl *bytes.Buffer, err error)

RenderTemplate is the main entry point to render the template based on the passed variables file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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