Documentation ¶
Index ¶
- Constants
- func NewDefault(name string) dukkha.Renderer
- func RenderTlang(rc dukkha.RenderingContext, tfs *templateutils.TemplateFuncs, ...) ([]byte, error)
- func ResolveInputSpec(rc dukkha.RenderingContext, tplBytes []byte, out *InputSpec) (err error)
- type ConfigSpec
- type Driver
- type IncludeSpec
- type InputSpec
Constants ¶
View Source
const (
DefaultName = "tlang"
)
Variables ¶
This section is empty.
Functions ¶
func NewDefault ¶
func RenderTlang ¶
func RenderTlang( rc dukkha.RenderingContext, tfs *templateutils.TemplateFuncs, inc []*IncludeSpec, variables map[string]any, tplStr string, ) ([]byte, error)
func ResolveInputSpec ¶
func ResolveInputSpec(rc dukkha.RenderingContext, tplBytes []byte, out *InputSpec) (err error)
Types ¶
type ConfigSpec ¶
type ConfigSpec struct { rs.BaseField // Include templates Include []*IncludeSpec `yaml:"include"` // Variables are a map of any data // // available as `var.some_value` Variables rs.AnyObjectMap `yaml:"variables"` }
type Driver ¶
type Driver struct { rs.BaseField `yaml:"-"` renderer.BaseRenderer `yaml:",inline"` Options ConfigSpec `yaml:",inline"` // contains filtered or unexported fields }
func (*Driver) RenderYaml ¶
func (d *Driver) RenderYaml( rc dukkha.RenderingContext, rawData any, attributes []dukkha.RendererAttribute, ) ([]byte, error)
type IncludeSpec ¶
Click to show internal directories.
Click to hide internal directories.