render

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 18 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, 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) 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)

func ResolveYAML

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

Types

type CommonFlags

type CommonFlags struct {
	TemplateFile 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