render

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemplate

func CreateTemplate(templateFile string, includeList []string, outputFile string, dryRun bool) (*template.Template, error)

func ExpandInclude

func ExpandInclude(includeTpl flags.IncludeList) ([]string, error)

func RenderBundle added in v0.1.7

func RenderBundle(cFlags *CommonFlags, validate bool, dryRun string) error

func RenderGeneric

func RenderGeneric(context any, cFlags *CommonFlags, dryRun bool) error

func RenderGenericTemplate

func RenderGenericTemplate(cFlags *CommonFlags, dryRun bool) error

func RenderTemplate

func RenderTemplate(tmpl *template.Template, context any) ([]byte, error)

Types

type CommonFlags added in v0.1.7

type CommonFlags struct {
	TemplateFile flags.String
	OutputFile   flags.String
	IncludeList  flags.IncludeList
	Values       *values.Map
}

func NewCommonFlags added in v0.1.7

func NewCommonFlags() *CommonFlags

Jump to

Keyboard shortcuts

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