render

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBundle

func CreateBundle(model v1.Model, output string, validate bool, dryRun string) (err error)

func CreateTemplate

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

func ExpandInclude

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

func GenerateBundle

func GenerateBundle(createModelFunc func(string) (v1.Model, error), cFlags *CommonFlags, validate bool, dryRun string, debug bool) error

func RenderGeneric

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

func RenderGenericTemplate

func RenderGenericTemplate(cFlags *CommonFlags, dryRun bool) error

func RenderGenericTemplateLocal added in v1.1.0

func RenderGenericTemplateLocal(cFlags *CommonFlags, dryRun bool) error

func RenderTemplate

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

func ResolveYAML

func ResolveYAML(text []byte, filePath string) ([]byte, error)

Types

type CommonFlags

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

func NewCommonFlags

func NewCommonFlags() *CommonFlags

type HelperFunc

type HelperFunc func(args ...any) string

Jump to

Keyboard shortcuts

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