Documentation
¶
Overview ¶
Package datasource renders Gomplate templates with merged YAML/JSON metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render( atmosConfig *schema.AtmosConfiguration, tmplName string, tmplValue string, mergedData map[string]interface{}, funcs template.FuncMap, ) (string, error)
Render applies a Gomplate template with config and root datasources. Custom functions are scoped to this render and their return values retain native fields and methods, bypassing datasource JSON serialization.
func RenderWith ¶
func RenderWith( atmosConfig *schema.AtmosConfiguration, tmplName string, tmplValue string, mergedData map[string]interface{}, buildFuncs FuncsBuilder, ) (string, error)
RenderWith is Render with functions built from the render's own datasource URLs. Callers that guard or wrap the functions, such as policy enforcement, need those URLs to construct them.
Types ¶
Click to show internal directories.
Click to hide internal directories.